Skip to content

ci: publish to npm with trusted publishing instead of a token - #37

Merged
hyamero merged 1 commit into
stagingfrom
ci/npm-trusted-publishing
Oct 2, 2026
Merged

hyamero merged 1 commit into
stagingfrom
ci/npm-trusted-publishing

Conversation

@hyamero

@hyamero hyamero commented Oct 2, 2026

Copy link
Copy Markdown
Member

The release job now publishes through npm trusted publishing (GitHub OIDC) instead of the NPM_TOKEN secret. npm is restricting tokens that bypass 2FA for direct publishing.

  • Removes NODE_AUTH_TOKEN from the semantic-release step.
  • Installs npm@^11.5.1 before publishing, the minimum trusted publishing needs.
  • id-token: write was already granted; provenance stays on.

Before the next release runs, register hyamero/stackmap, workflow ci.yml, as a trusted publisher in the package settings on npmjs.com. Once a release has published through OIDC, set publishing access to disallow tokens and delete NPM_TOKEN.

@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stackmap-site Ready Ready Preview Oct 2, 2026 6:37am UTC

@hyamero
hyamero changed the base branch from main to staging October 2, 2026 06:41
@hyamero
hyamero merged commit 0c45a89 into staging Oct 2, 2026
7 checks passed
@hyamero
hyamero deleted the ci/npm-trusted-publishing branch October 2, 2026 07:00
@hyamero hyamero mentioned this pull request Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.2.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — 070e03b7 Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant