Skip to content

Commit 1828264

Browse files
committed
chore(release): update semantic-release configuration for npm publishing
- Modified .releaserc.json to disable automatic npm publishing and added a custom publish command using @semantic-release/exec. - Removed outdated semantic-release npm plugin from package.json and added @semantic-release/exec for enhanced control over the publishing process.
1 parent bc78beb commit 1828264

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.releaserc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"plugins": [
77
"@semantic-release/commit-analyzer",
88
"@semantic-release/release-notes-generator",
9-
"@semantic-release/npm",
9+
["@semantic-release/npm", { "npmPublish": false }],
10+
["@semantic-release/exec", { "publishCmd": "npm publish --provenance --access public" }],
1011
"@semantic-release/github"
1112
]
1213
}

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@
4949
"ts-node": "^8.0.2",
5050
"typescript": "^3.9.5",
5151
"semantic-release": "^24.0.0",
52-
"@semantic-release/npm": "^13.0.0",
53-
"@semantic-release/github": "^12.0.0",
54-
"@semantic-release/commit-analyzer": "^13.0.0",
55-
"@semantic-release/release-notes-generator": "^14.0.0"
52+
"@semantic-release/exec": "^7.0.0"
5653
},
5754
"husky": {
5855
"hooks": {

0 commit comments

Comments
 (0)