-
Notifications
You must be signed in to change notification settings - Fork 1
Update NPM publishing to use OIDC authentication with Node 24 and pnpm 10.19 #48
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
Conversation
Co-authored-by: alexasselin008 <38871812+alexasselin008@users.noreply.github.com>
Co-authored-by: alexasselin008 <38871812+alexasselin008@users.noreply.github.com>
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 NPM publishing workflow to use OIDC authentication and upgrades the project to Node.js 24 and pnpm 10.19.0. The changes improve security through OIDC-based authentication and implement a minimum release age policy for npm dependencies.
- Node.js upgraded from LTS to version 24, pnpm upgraded to version 10.19.0
- Added
.npmrcconfiguration to enforce 1-day minimum release age for dependencies (excluding Workleap packages) - Transitioned NPM publishing from token-based to OIDC authentication
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.nvmrc |
Updates Node.js version from LTS to 24 |
package.json |
Updates Node.js engine requirement and pins pnpm version to 10.19.0 |
packages/create-schemas/package.json |
Updates Node.js engine requirement to 24.0.0 |
.npmrc |
Adds security configuration for minimum release age policy |
.github/actions/setup/action.yml |
Removes explicit pnpm version to use package.json definition |
.github/workflows/publish.yml |
Removes NPM_TOKEN for OIDC authentication |
.changeset/update-npm-oidc.md |
Adds changeset for testing the release process |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Jira issue link: ssd-3983
This PR updates the NPM publishing workflow to use OIDC (OpenID Connect) authentication and upgrades the project to Node.js 24 and pnpm 10.19.0, following the same pattern as implemented in workleap/wl-telemetry#112.
Changes
Node.js and pnpm Updates
.nvmrcandpackage.jsonengines)packageManagerfield inpackage.json)package.jsonNPM Security Improvements
Added
.npmrcconfiguration to improve security by enforcing a minimum release age for dependencies:@workleap*) are excluded from this requirement for faster internal updatesOIDC Authentication
Updated the publish workflow to use OIDC authentication for NPM publishing:
NPM_TOKENtoNODE_AUTH_TOKENenvironment variableNPM_CONFIG_PROVENANCE: trueto enable provenance statements for published packagesTesting
Created a changeset to test the release process with these new configurations.
Related
Closes SSD-3983
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
petstore3.swagger.ioIf you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #47
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.