Skip to content

Commit 2a02d21

Browse files
author
Michael Dowse
committed
fix: Fix semantic-version config
1 parent 9f117f4 commit 2a02d21

File tree

3 files changed

+119
-8
lines changed

3 files changed

+119
-8
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32-
run: npx semantic-release --branches main
32+
run: npx semantic-release

package-lock.json

+90
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+28-7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"homepage": "https://github.com/michaeldowseza/hello-world#readme",
3535
"devDependencies": {
36+
"@semantic-release/changelog": "^5.0.1",
3637
"@semantic-release/commit-analyzer": "^8.0.1",
3738
"@semantic-release/git": "^9.0.0",
3839
"@semantic-release/github": "^7.2.3",
@@ -54,13 +55,33 @@
5455
"arrowParens": "avoid",
5556
"trailingComma": "none"
5657
},
57-
"plugins": [
58-
"@semantic-release/commit-analyzer",
59-
"@semantic-release/release-notes-generator",
60-
"@semantic-release/git",
61-
"@semantic-release/npm",
62-
"@semantic-release/github"
63-
],
58+
"release": {
59+
"branches": [
60+
"main"
61+
],
62+
"plugins": [
63+
[
64+
"@semantic-release/changelog",
65+
{
66+
"changelogFile": "CHANGELOG.md"
67+
}
68+
],
69+
[
70+
"@semantic-release/git",
71+
{
72+
"assets": [
73+
"package.json",
74+
"CHANGELOG.md"
75+
],
76+
"message": "release: ${nextRelease.version} \n\n${nextRelease.notes}"
77+
}
78+
],
79+
"@semantic-release/commit-analyzer",
80+
"@semantic-release/release-notes-generator",
81+
"@semantic-release/npm",
82+
"@semantic-release/github"
83+
]
84+
},
6485
"publishConfig": {
6586
"access": "public"
6687
}

0 commit comments

Comments
 (0)