Skip to content
This repository was archived by the owner on Jun 5, 2026. It is now read-only.

Publish stable releases from master to the latest dist-tag#68

Merged
patocallaghan merged 1 commit into
masterfrom
patoc/publish-yml-shippable-dist-tag
Jun 5, 2026
Merged

Publish stable releases from master to the latest dist-tag#68
patocallaghan merged 1 commit into
masterfrom
patoc/publish-yml-shippable-dist-tag

Conversation

@patocallaghan
Copy link
Copy Markdown
Member

@patocallaghan patocallaghan commented Jun 4, 2026

Why?

Put the staged-publish workflow into its real shippable state. A package that ships stable releases from master only needs the one path: publish reviewed master code to the default latest dist-tag. The prerelease/next flow is an advanced, opt-in capability this package doesn't use, so it shouldn't be baked into the reference workflow.

How?

npm stage publish now runs with no --tag (defaults to latest), and the release-source guard refuses any release not reachable from master (the prerelease exemption is removed, so the guard applies to every release).

Generated with Claude Code

@patocallaghan patocallaghan marked this pull request as ready for review June 4, 2026 19:10
@patocallaghan patocallaghan changed the title Make stage-publish dist-tag follow the release type (latest for stable, next for prerelease) Publish stable releases from master to the latest dist-tag Jun 5, 2026
Put the staged-publish workflow into its real shippable state. A package that
ships stable releases from master only needs one path: publish reviewed master
code to the default `latest` dist-tag. The prerelease/`next` flow is an advanced,
opt-in capability this package doesn't use, so it isn't baked into the reference.

- `npm stage publish` runs with no `--tag`, so it defaults to `latest`.
- The release-source guard refuses any release not reachable from master (the
  prerelease exemption is removed) and fails closed with a clear message if the
  master fetch fails.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@patocallaghan patocallaghan force-pushed the patoc/publish-yml-shippable-dist-tag branch from 926f340 to 5259bc4 Compare June 5, 2026 08:59
@patocallaghan patocallaghan merged commit be20c1b into master Jun 5, 2026
2 of 4 checks passed
@patocallaghan patocallaghan deleted the patoc/publish-yml-shippable-dist-tag branch June 5, 2026 09:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants