Skip to content

fix(ci): support npm trusted publishing - #27

Merged
huytdps13400 merged 1 commit into
mainfrom
fix/npm-publish-runtime
Sep 22, 2026
Merged

huytdps13400 merged 1 commit into
mainfrom
fix/npm-publish-runtime

Conversation

@huytdps13400

Copy link
Copy Markdown
Owner

The publish workflow uses Node 20/npm 10, which cannot authenticate using npm Trusted Publishing. It can fail to publish even when the package already has its GitHub OIDC publisher configured.

Use Node 24 and npm 11.19.1 in the publish job, retaining the existing token fallback and id-token: write permission. The package's development/test Node version stays in .nvmrc.

Validation: workflow formatting and diff checks passed. Running the publish workflow's install/test/Nitrogen/package dry-run on this branch before retrying the 2.2.1 publication.

Reference: https://docs.npmjs.com/trusted-publishers/

@huytdps13400
huytdps13400 merged commit d7deac6 into main Sep 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant