Skip to content

Commit 65344a8

Browse files
manuelbiehclaude
andcommitted
ci: replace @semantic-release/npm with exec for OIDC publishing
Remove @semantic-release/npm entirely since it always runs npm whoami which is incompatible with OIDC. Use @semantic-release/exec for both version bumping (prepareCmd) and publishing (publishCmd via npm publish --provenance which handles OIDC natively). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 474b22b commit 65344a8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

release.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ module.exports = {
5353
},
5454
],
5555
'@semantic-release/changelog',
56-
['@semantic-release/npm', { npmPublish: false }],
57-
['@semantic-release/exec', { publishCmd: 'npm publish --provenance --access public' }],
56+
[
57+
'@semantic-release/exec',
58+
{
59+
prepareCmd: 'npm version ${nextRelease.version} --no-git-tag-version',
60+
publishCmd: 'npm publish --provenance --access public',
61+
},
62+
],
5863
'@semantic-release/github',
5964
[
6065
'@semantic-release/git',

0 commit comments

Comments
 (0)