LG-5777 chore(CI): NPM publish with OIDC#3369
Conversation
|
|
Some major caveats with needing OIDC:
The alternative to OIDC
|
|
Size Change: 0 B Total Size: 1.81 MB ℹ️ View Unchanged
|
|
All 129 packages have been updated with a Trusted Publisher on npm |
There was a problem hiding this comment.
Pull request overview
This PR updates the CI/CD pipeline to support NPM publishing with OpenID Connect (OIDC) authentication and upgrades the Node.js version from 18 to 22 across the repository.
Key Changes:
- Migrated NPM authentication from token-based to OIDC by adding required permissions and removing
.npmrcconfiguration steps - Upgraded Node.js version requirement from 18.20.8 to 22.21.0/22.21.1 across all environments
- Updated all GitHub Actions workflow files to use Node 22
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
package.json |
Updated minimum Node.js engine requirement to 22.21.0 |
.tool-versions |
Updated nodejs version to 22.21.1 for local development |
.github/workflows/release.yml |
Added OIDC permissions, removed NPM token configuration, updated to Node 22 |
.github/workflows/pr.yml |
Updated all Node.js setup steps to use version 22 |
.github/workflows/react17.yml |
Updated Node.js version to 22 in build and test jobs |
.github/workflows/sizeDiff.yml |
Updated Node.js version to 22 |
|
Coverage after merging at/LG-5777-npm into main will be
Coverage Report for Changed Files
|
omg did you have to do this manually? :o |
| - name: Debug changesets output | ||
| run: | | ||
| echo "Changesets output: ${{ steps.changesets.outputs }}" | ||
| echo "Changesets output type: ${{ toJSON(steps.changesets.outputs) }}" | ||
| echo "--------------------------------" |
There was a problem hiding this comment.
oops should have dropped this, thank you!
✍️ Proposed changes
Updates all npm packages to use Trusted Publishers
Removes npm auth token from CI
Updates to node 22
🎟 Jira ticket: LG-5777