Skip to content

ci(release): add move-next dispatch to repoint npm next dist-tag - #7

Merged
shixish merged 2 commits into
mainfrom
ci/move-next-dist-tag
Nov 27, 2026
Merged

shixish merged 2 commits into
mainfrom
ci/move-next-dist-tag

Conversation

@shixish

@shixish shixish commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Adds a workflow_dispatch input action (dry-run default | move-next) and an optional version input to release.yml.

  • action: move-next runs only the new move-next job: checks the version is already on npm (empty = current latest) and runs npm dist-tag add <pkg>@<version> next via trusted publishing (OIDC, id-token: write). No build, no publish, no dry-run publish, no GitHub Release.
  • All other jobs are gated with github.event_name != 'workflow_dispatch' || inputs.action != 'move-next', so tag pushes and the default dry-run dispatch behave exactly as before.
  • It lives in release.yml (not a separate workflow) because the npm trusted publisher is bound to this workflow filename; "Allow npm dist-tag" is already enabled on it.
  • The existing "Point next at final release" step is unchanged.

Validated with actionlint.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shixish
shixish merged commit 16dae55 into main Nov 27, 2026
4 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.

1 participant