Skip to content

Commit e841243

Browse files
committed
refactor: adjust semantic-release config
1 parent ffc8d33 commit e841243

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38-
run: npx semantic-release --dry-run
38+
run: npx semantic-release

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@
1212
"clean": "del-cli ./lib",
1313
"build": "npm run clean && tsc -p ./tsconfig.json",
1414
"test": "node --experimental-strip-types --test",
15-
"semantic-release": "semantic-release --dry-run",
15+
"semantic-release": "semantic-release",
1616
"prepack": "npm run build"
1717
},
1818
"release": {
1919
"branches": [
2020
"main"
21+
],
22+
"dryRun": true,
23+
"plugins": [
24+
[
25+
"@semantic-release/npm",
26+
{
27+
"npmPublish": false
28+
}
29+
]
2130
]
2231
},
2332
"publishConfig": {

0 commit comments

Comments
 (0)