Skip to content

chore: relase workflow#61

Merged
SirSimon04 merged 3 commits intomainfrom
update-release
Mar 26, 2026
Merged

chore: relase workflow#61
SirSimon04 merged 3 commits intomainfrom
update-release

Conversation

@SirSimon04
Copy link
Contributor

Have you...

  • Added relevant entry to the change log?

Copy link
Contributor

@hyperspace-insights hyperspace-insights bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@SirSimon04 SirSimon04 marked this pull request as ready for review March 26, 2026 14:02
@SirSimon04 SirSimon04 requested a review from a team as a code owner March 26, 2026 14:02
@hyperspace-insights
Copy link
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:


Chore: Update Release Workflow with Test Job and Streamlined Steps

Chore

🔧 Refactored the GitHub Actions release workflow to introduce a dedicated test job as a prerequisite for publishing, and streamlined the publish-npm job steps.

Changes

  • .github/workflows/release.yml:
    • Added a new test job that runs a matrix of Node.js versions (20.x, 22.x) against the latest CDS version, executing build and test steps before any publish occurs.
    • Updated publish-npm to depend on (needs: test) the new test job, ensuring tests pass before publishing.
    • Replaced the old inline test/lint steps in publish-npm with simplified npm i and npm run build steps.
    • Updated npm publish command to include the --provenance flag for supply chain transparency, removing the separate NODE_AUTH_TOKEN env block (token likely configured at the environment level).

  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.19.3 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback

  • LLM: anthropic--claude-4.6-sonnet
  • Event Trigger: pull_request.ready_for_review
  • Output Template: Default Template
  • Summary Prompt: Default Prompt
  • Correlation ID: 5f025ed0-291c-11f1-82cd-4ec0535898ca

💌 Have ideas or want to contribute? Create an issue and share your thoughts with us!
📑 Check out the documentation for more information.
📬 Subscribe to the Hyperspace PR Bot DL to get the latest announcements and pilot features!

Made with ❤️ by Hyperspace.

Copy link
Contributor

@hyperspace-insights hyperspace-insights bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Suggested change
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
- 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

@SirSimon04 SirSimon04 merged commit da9aa4a into main Mar 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants