-
Notifications
You must be signed in to change notification settings - Fork 2
Update release workflow to use trusted publishing
#52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Update `release-it@19.2.3`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the release workflow to use OIDC-based trusted publishing for npm, which is more secure than using long-lived tokens. The changes include upgrading release-it to version 19.2.3, updating GitHub Actions to v6, and configuring the workflow with the necessary id-token: write permission.
Changes:
- Updated
release-itfrom 19.0.3 to 19.2.3 to support OIDC publishing - Configured GitHub workflow with OIDC permissions (
id-token: write) - Updated GitHub Actions to v6 and Node.js to version 24
- Removed manual npm token configuration in favor of automatic OIDC authentication
- Added
skipChecks: trueto npm publishing configuration
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Updated release-it dependency from ^19.0.3 to ^19.2.3 |
| .release-it.js | Added skipChecks: true to npm configuration |
| .github/workflows/release.yaml | Updated to use OIDC authentication with id-token permission, upgraded actions to v6, and Node.js to v24 |
| yarn.lock | Updated all transitive dependencies from release-it and related packages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
| node-version: 24 |
Copilot
AI
Jan 19, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrading from Node.js 22 to Node.js 24 is a significant version change. Node.js 24 was released in October 2024 and may not be LTS yet. Verify that all dependencies and tooling in this project are compatible with Node.js 24, or consider using Node.js 22 LTS or Node.js 20 LTS for stability.
| node-version: 24 | |
| node-version: 22.x |
| publish: true, | ||
| skipChecks: true | ||
| } | ||
| }; |
Copilot
AI
Jan 19, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The skipChecks: true option bypasses important npm pre-publish checks. This setting should only be used if there's a specific reason to skip npm's built-in validation. Consider documenting why this is necessary or removing it to maintain standard npm publishing safety checks.
| publish: true, | |
| skipChecks: true | |
| } | |
| }; | |
| publish: true | |
| } | |
| }; |
Description
releaseworkflow to use OIDC publishing viarelease-it. See https://github.com/release-it/release-it/blob/3378faf75f1a8e2e87f63a4914f8df68223b3a5b/docs/npm.md#trusted-publishing-oidc