Skip to content

Commit d001e99

Browse files
committed
fix(ci): fix release config by moving branches setting
Instead of merging the configuration values in `package.json` with those in `relase.config.js`, the `package.json` configuration was treated as the only configuration.
1 parent c5a0e9d commit d001e99

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
"path": "cz-conventional-changelog"
3939
}
4040
},
41-
"release": {
42-
"branches": ["main"]
43-
},
4441
"dependencies": {
4542
"@semantic-release/changelog": "^6.0.1",
4643
"@semantic-release/commit-analyzer": "^9.0.2",

release.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
"branches": ["main"],
23
"plugins": [
34
"@semantic-release/commit-analyzer",
45
"@semantic-release/release-notes-generator",
@@ -9,23 +10,22 @@ module.exports = {
910
}
1011
],
1112
[
12-
"@semantic-release/npm",
13+
"@semantic-release/git",
1314
{
14-
"tarballDir": "pack"
15+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
1516
}
1617
],
1718
[
18-
"@semantic-release/github",
19+
"@semantic-release/npm",
1920
{
20-
"assets": "pack/*.tgz"
21+
"tarballDir": "pack"
2122
}
2223
],
2324
[
24-
"@semantic-release/git",
25+
"@semantic-release/github",
2526
{
26-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
27-
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"]
27+
"assets": "pack/*.tgz"
2828
}
2929
]
30-
]
30+
],
3131
};

0 commit comments

Comments
 (0)