Conversation
There was a problem hiding this comment.
The PR has three substantive bugs: the actions/checkout@v5 reference is non-existent and will break the workflow at runtime, the NODE_AUTH_TOKEN env var was accidentally dropped from the npm publish step making it impossible to authenticate with the registry, and the new --provenance flag requires id-token: write permissions which are not declared anywhere in the workflow. All three need to be fixed before this release workflow can actually run successfully.
PR Bot Information
Version: 1.19.3 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- LLM:
anthropic--claude-4.6-sonnet - Correlation ID:
b4a15c60-2912-11f1-9257-5262773587e9 - Event Trigger:
pull_request.opened
SummaryThe following content is AI-generated and provides a summary of the pull request: Chore: Update Release Workflow with Test Job and Streamlined StepsChore🔧 Refactored the GitHub Actions release workflow to introduce a dedicated Changes
PR Bot InformationVersion:
💌 Have ideas or want to contribute? Create an issue and share your thoughts with us! Made with ❤️ by Hyperspace. |
There was a problem hiding this comment.
The PR introduces a dedicated test job that gates publishing, and adds npm provenance — good improvements overall. However, there are three critical issues: a non-existent actions/checkout@v5 reference that will break the test job, the missing NODE_AUTH_TOKEN env var that will break npm publish, and the missing id-token: write permission required by --provenance. All three must be addressed before this workflow is functional.
PR Bot Information
Version: 1.19.3 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- LLM:
anthropic--claude-4.6-sonnet - Event Trigger:
pull_request.ready_for_review - Correlation ID:
5f025ed0-291c-11f1-82cd-4ec0535898ca
| - run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
| - run: npm publish --access public --provenance |
There was a problem hiding this comment.
Bug: npm publish --provenance requires id-token: write permission, which is missing
The --provenance flag generates a signed attestation for the published package. This requires the workflow to have permissions.id-token: write, otherwise the publish step will fail at runtime with a permissions error.
Should add id-token: write to the top-level permissions block (or scoped to the publish-npm job).
| - run: npm publish --access public --provenance | |
| - run: npm publish --access public --provenance | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
Double-check suggestion before committing. Edit this comment for amendments.
Please provide feedback on the review comment by checking the appropriate box:
- 🌟 Awesome comment, a human might have missed that.
- ✅ Helpful comment
- 🤷 Neutral
- ❌ This comment is not helpful
| - run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
| - run: npm publish --access public --provenance |
There was a problem hiding this comment.
Bug: NODE_AUTH_TOKEN environment variable was removed, breaking npm publish authentication
The original workflow passed NODE_AUTH_TOKEN: ${{secrets.npm_token}} as an env var to the publish step. Without it, npm publish will fail with an authentication error since the token is required to write to the registry.
Should restore the env block for the publish step.
| - run: npm publish --access public --provenance | |
| - run: npm publish --access public --provenance | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
Double-check suggestion before committing. Edit this comment for amendments.
Please provide feedback on the review comment by checking the appropriate box:
- 🌟 Awesome comment, a human might have missed that.
- ✅ Helpful comment
- 🤷 Neutral
- ❌ This comment is not helpful
Have you...