Summary
Migrate .github/workflows/publish-npm.yml from NPM_TOKEN authentication to npm Trusted Publishing (OIDC) now that the trusted publisher is configured on npmjs.com for Adamant-im/adamant-tradebot / publish-npm.yml.
Background
- v9.0.0 was the first publish and used
secrets.NPM_TOKEN
- npm Trusted Publisher (OIDC) is configured on the package
- Sibling packages (
adamant-api, adamant-console) already publish via OIDC without a stored token
Scope
Follow-up (after merge + successful OIDC publish)
Related
Summary
Migrate
.github/workflows/publish-npm.ymlfromNPM_TOKENauthentication to npm Trusted Publishing (OIDC) now that the trusted publisher is configured on npmjs.com forAdamant-im/adamant-tradebot/publish-npm.yml.Background
secrets.NPM_TOKENadamant-api,adamant-console) already publish via OIDC without a stored tokenScope
NODE_AUTH_TOKEN/NPM_TOKENfrom the publish workflownpm install -g npm@latest(npm CLI ≥ 11.5.1 for OIDC)permissions: id-token: writeandnpm publish --provenance --access publicworkflow_dispatchfor manual verification before the next releasepackage.jsonversion check (same asadamant-api)publishConfig.provenance: trueinpackage.jsonFollow-up (after merge + successful OIDC publish)
NPM_TOKENrepository secret (no longer needed for publish)Related