ci(npm): OIDC/Trusted publishing workflow & node update#1654
ci(npm): OIDC/Trusted publishing workflow & node update#1654damyanpetev merged 7 commits intomasterfrom
Conversation
|
@damyanpetev , according to the initial official docs for Trusted Publishing: |
There was a problem hiding this comment.
Pull request overview
Updates the npm publish GitHub Actions workflow to use npmjs.org Trusted Publishing (OIDC) instead of an NPM_TOKEN, aligning this repo with the newer publishing model for the listed packages.
Changes:
- Grants
id-token: writeso the workflow can request an OIDC token for npm Trusted Publishing. - Updates npm in the runner prior to publishing.
- Removes
NODE_AUTH_TOKENinjection (token-based auth) from the publish step.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| permissions: | ||
| id-token: write | ||
| contents: read |
There was a problem hiding this comment.
Consider scoping id-token: write to the specific job (or even the publishing step via job-level permissions) instead of workflow-wide permissions. This keeps least-privilege if additional jobs are added later.
Co-authored-by: Damyan Petev <damyanpetev@users.noreply.github.com>
So we can get OIDC/Trusted publishing to npmjs.org going

Description
This is one of the few remaining repos where we don't have Trusted Publishing to npmjs.org.
I have enabled Trusted Publishing for each package being published from this repo - I believe that publishing a new rc #4 is the best way to try this out.
Related Issue
Closes #
Type of Change
Affected Packages
igniteui-cli(packages/cli)@igniteui/cli-core(packages/core)@igniteui/angular-templates(packages/igx-templates)@igniteui/angular-schematics(packages/ng-schematics)@igniteui/mcp-server(packages/igniteui-mcp)Checklist
npm run test)npm run build)npm run lint)Additional Context