403 Forbidden Error When Publishing via GitHub Actions #3188
Replies: 2 comments 1 reply
-
we've had other users see problems like you describe when setting the registry-url property of the setup-node action. that results in the setup-node action writing a instead of using the setup-node action to configure the registry, we recommend configuring npm directly by versioning a |
Beta Was this translation helpful? Give feedback.
-
It's not a setup-node bug, just double check if you're using the correct token. |
Beta Was this translation helpful? Give feedback.
-
Current behavior
I am encountering a 403 Forbidden error when attempting to publish my project using semantic-release through GitHub Actions, despite having correctly configured both the GitHub All Access Token and the Automation NPM Token within my GitHub Actions pipeline.
Steps to Reproduce:
Actual Behavior:
The publishing step returns a 403 Forbidden error, indicating a permission issue. However, when performing a dry run using the same token within the .npmrc file, publishing succeeds without any errors. This suggests that the tokens are correctly set and have the necessary permissions. Additionally, prior to integrating semantic-release, the GitHub Actions pipeline was able to publish to NPM successfully.
Additional Information:
Expected behavior
The package should be published to NPM without any permission issues, similar to how it worked previously without semantic-release and when manually publishing using the token via .npmrc.
semantic-release
version23.0.1
CI environment
Github Actions
Plugins used
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/changelog",
{
"changelogFile": "docs/CHANGELOG.md"
}
]
]
}
semantic-release
configurationCI logs
Beta Was this translation helpful? Give feedback.
All reactions