Skip to content

Commit 1c59b64

Browse files
authored
ci: enhance semantic release configuration (#13)
Conventional commits will be analyzed now.
1 parent 16a7309 commit 1c59b64

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.github/workflows/semantic-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
with:
2222
node-version: "22.13.1"
2323
- name: Install dependencies
24-
run: npm clean-install
24+
run: npm install
2525
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
2626
run: npm audit signatures
2727
- name: Release
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: npx semantic-release
31-
31+

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"devDependencies": {
33
"@semantic-release/git": "^10.0.1",
44
"@semantic-release/github": "^11.0.1",
5+
"conventional-changelog-conventionalcommits": "^8.0.0",
56
"semantic-release": "^24.2.1"
67
}
78
}

release.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
const config = {
22
branches: ['main'],
33
plugins: [
4-
'@semantic-release/commit-analyzer',
5-
'@semantic-release/release-notes-generator',
4+
['@semantic-release/commit-analyzer', {
5+
preset: 'conventionalcommits'
6+
}],
7+
['@semantic-release/release-notes-generator', {
8+
preset: 'conventionalcommits'
9+
}],
610
'@semantic-release/git',
711
'@semantic-release/github'
812
]
913
};
10-
14+
1115
module.exports = config;
12-

0 commit comments

Comments
 (0)