chore: add npm trusted publishing workflow#1425
chore: add npm trusted publishing workflow#1425manu-bitt wants to merge 1 commit intotesting-library:mainfrom
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4971e88:
|
|
Hi 👋, I’ve added the workflow for NPM Trusted Publishing as discussed in #1420. |
|
Hi 👋 just following up kindly on this PR. |
|
Thanks for taking the time to opening this one but it doesn't 100% follow the way we publish our package. We've adapted our pipeline to support trusted publishing. |
What:
Added a new GitHub Action workflow for npm Trusted Publishing using OpenID Connect (OIDC).
Why:
To enable secure, tokenless npm publishing directly from GitHub Actions.
This improves CI/CD security and automation while keeping compatibility with existing workflows.
How:
Created
.github/workflows/publish.ymlthat triggers on release creation and publishes the package using:permissions: id-token: writenpm publish --provenance --access publicChecklist:
Fixes #1420
This complements the existing
validate.ymlworkflow and introduces no breaking changes.