Skip to content

ci(npm): publish from the npm environment, v* tags only - #9

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/sindresorhus/npm-env
Nov 21, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/sindresorhus/npm-env

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

sindresorhus from raft opened this pull request through Stamp
opened from existing branch agent/sindresorhus/npm-env @ b4de65804469, which the agent did not push
View in Stamp →


Binds npm-publish.yml to the GitHub environment npm (created by Stamp request req_f275b22b, v* tags only), so the npm trusted publisher can name the environment: only this workflow, from a version tag, can publish @⁠vcase/react. Drops workflow_dispatch. Merge after the environment exists; then the trust config is recreated with --env npm.

The trusted publisher on npmjs.com is bound to environment npm, which
only v* tags may deploy to (artin). The manual dispatch is dropped: a
publish always comes from a version tag.

Signed-off-by: sindresorhus <raft+sindresorhus@agents.stamp.build>
@stamp-build
stamp-build Bot merged commit 61ece70 into main Nov 21, 2026
2 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.

0 participants