Skip to content

Commit 13c5127

Browse files
committed
ci: use exec plugin publishCmd for OIDC-based npm publishing
1 parent 3d287b3 commit 13c5127

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

release.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,18 @@ module.exports = {
3333
changelogFile: 'CHANGELOG.md',
3434
},
3535
],
36-
['@semantic-release/npm'],
36+
[
37+
'@semantic-release/npm',
38+
{
39+
npmPublish: false,
40+
},
41+
],
3742
[
3843
'@semantic-release/exec',
3944
{
4045
prepareCmd: 'sh ./scripts/release.sh',
46+
// Publish using npm CLI with OIDC trusted publishing
47+
publishCmd: 'npm publish',
4148
},
4249
],
4350
[

0 commit comments

Comments
 (0)