Manage npm dist-tags with Trusted Publishing, without keeping a separate token for the job.
Opt in per configuration, including staging-only workflows. Existing permissions stay unchanged unless you enable it.
Learn more ⬇️
Automate preparation, keep approval with a maintainer.
npm’s stage-only granular access tokens let CI stage new versions, while publication requires maintainer approval with 2FA.
Get started ⬇️
npm Granular Access Tokens that bypass 2FA can no longer manage your account, org, or packages—those actions now require an interactive 2FA challenge, closing a major credential-based attack surface.
npm is rotating write-scoped npm Granular Access Tokens that bypass 2FA as a precaution following a now-contained security incident. This doesn't affect GitHub personal access tokens. Maintainers should upgrade the npm CLI to v12+ and consider Trusted Publishing.