chore: switch npm publish to npm stage publish#7
Open
aliou wants to merge 1 commit into
Open
Conversation
- Replace 'pnpm changeset publish' with 'npm stage publish'
- Remove 'publish' input from changesets/action (use hasChangesets pattern)
- Add 'workflow_dispatch' trigger for manual runs
- Add 'npm install -g npm@latest' for npm CLI 11.15.0+ (stage command)
- Upgrade actions: checkout@v6, pnpm/action-setup@v6, setup-node@v6
- Standardize Node version to 24 (25 for monorepos with SEA builds)
- Harmonize tag format to v{version}
- Remove NPM_TOKEN (use OIDC via NPM_CONFIG_PROVENANCE)
- Add 'packages: write' permission
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch from
npm publishtonpm stage publishso that packages are staged for review before going live on the npm registry.Changes:
pnpm changeset publishwithnpm stage publishpublishinput from changesets/action (usehasChangesets == falsepattern)workflow_dispatchtrigger for manual runsnpm install -g npm@latestfor npm CLI 11.15.0+ (required forstagecommand)v{version}packages: writepermissionAfter merge, packages will be staged on npm instead of published immediately. Approve staged packages on https://www.npmjs.com/~aliou (Staged Packages tab) to complete the publish.