Skip to content

Commit d0ddcec

Browse files
fix: Set NPM_TOKEN to GITHUB_TOKEN for GitHub Packages authentication
The @semantic-release/npm plugin requires NPM_TOKEN environment variable for authentication, even when publishing to GitHub Packages. Set NPM_TOKEN to GITHUB_TOKEN value so the plugin can authenticate with npm.pkg.github.com registry. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7a05173 commit d0ddcec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/semantic-release/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ runs:
140140
${{ env.EXTRA_PLUGINS }}
141141
env:
142142
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
143+
NPM_TOKEN: ${{ inputs.GITHUB_TOKEN }}
143144
HUSKY: '0'
144145

145146
- name: Output commit hash

0 commit comments

Comments
 (0)