# Stage-only npm tokens for safer automation

DevFeed: [Stage-only npm tokens for safer automation](<https://devfeed.tech/articles/stage-only-npm-tokens-for-safer-automation-71434.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2026-09-18-stage-only-npm-tokens-for-safer-automation>)

Author: Allison

Published: 2026-09-18T16:37:50Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [npm](<https://devfeed.tech/topics/npm.md>), [least privilege](<https://devfeed.tech/topics/least-privilege.md>), [npm security](<https://devfeed.tech/topics/npm-security.md>), [Automation](<https://devfeed.tech/topics/automation.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2fa](<https://devfeed.tech/tags/2fa.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [account](<https://devfeed.tech/tags/account.md>), [automated](<https://devfeed.tech/tags/automated.md>), [automation](<https://devfeed.tech/tags/automation.md>), [can](<https://devfeed.tech/tags/can.md>), [giving](<https://devfeed.tech/tags/giving.md>), [lets](<https://devfeed.tech/tags/lets.md>), [npm](<https://devfeed.tech/tags/npm.md>), [package](<https://devfeed.tech/tags/package.md>), [review](<https://devfeed.tech/tags/review.md>), [select](<https://devfeed.tech/tags/select.md>), [stage](<https://devfeed.tech/tags/stage.md>), [this](<https://devfeed.tech/tags/this.md>), [token](<https://devfeed.tech/tags/token.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [workflows](<https://devfeed.tech/tags/workflows.md>), [write](<https://devfeed.tech/tags/write.md>)

## AI overview

npm granular tokens can now be set to "Read and write (stage only)" so automation can submit package versions for review with `npm stage publish` but cannot publish directly, even when configured to bypass 2FA. A maintainer must review and approve each staged release with 2FA. These tokens still allow other write actions, including moving dist-tags and deprecating versions, so they need the same protection as other write tokens. This opt-in change leaves existing tokens' capabilities unchanged; npm targets January 2027 to remove direct publishing through bypass-2FA tokens. To migrate, create a stage-only token, replace the workflow token and command, then have a maintainer approve staged releases. Requirements: package publish access, 2FA enabled, npm CLI 11.15.0 or later, and Node.js 22.14.0 or later.

## Source excerpt

You can now select Read and write (stage only) when creating an npm granular access token. This lets your automated workflows stage package versions for review without giving the token...