Skip to content

Commit 3c5c0bc

Browse files
committed
fix(release): update npm publish command to set authentication token and registry configuration
1 parent 24d316e commit 3c5c0bc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
contents: write
1212
issues: write
1313
pull-requests: write
14+
packages: write
1415
id-token: write
1516
steps:
1617
- uses: actions/checkout@v4

.releaserc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
'@semantic-release/exec',
1212
{
1313
publishCmd:
14-
'npm config set @smakss:registry https://npm.pkg.github.com/ && NODE_AUTH_TOKEN=$GITHUB_TOKEN npm publish --registry https://npm.pkg.github.com/ --tag ${nextRelease.channel} --access public',
14+
'npm config set @smakss:registry https://npm.pkg.github.com/ && npm config set //npm.pkg.github.com/:_authToken "$GITHUB_TOKEN" && npm config set always-auth true && npm publish --registry https://npm.pkg.github.com/ --tag ${nextRelease.channel} --access public',
1515
},
1616
],
1717
[

0 commit comments

Comments
 (0)