Skip to content

ci: publish pre-releases to the latest dist-tag - #21

Merged
goodlime merged 1 commit into
mainfrom
ci/publish-to-latest
Jun 21, 2026
Merged

ci: publish pre-releases to the latest dist-tag#21
goodlime merged 1 commit into
mainfrom
ci/publish-to-latest

Conversation

@goodlime

Copy link
Copy Markdown
Contributor

Why

npm install @ilq/grapesjs-angular was resolving to 2.0.0-beta.1 (2 months old, pre-React-parity API) because publish.yml routed -beta tags to the beta dist-tag and never advanced latest. While the library is pre-1.0, the newest release should be the default install.

Change

  • publish.yml — every tag now publishes with --tag latest (npm's default) instead of routing -alpha/-beta/-rc to separate channels. A comment notes to revisit once a stable release needs its own pre-release channel. Pre-release detection is preserved — it still drives the GitHub Release --prerelease flag.
  • README.md — install line reverted to plain npm install @ilq/grapesjs-angular grapesjs (the npm-package link added earlier stays).

Note

This only governs future tags. The current latestbeta.1 is fixed out-of-band with a one-time npm dist-tag add @ilq/grapesjs-angular@2.0.0-beta.2 latest (the publish job uses OIDC Trusted Publishing, so there's no token to do it from CI today).

While pre-1.0, the newest release is what consumers should get by
default, so every tag now publishes to `latest` instead of routing
-beta/-alpha/-rc to a separate channel. Stops `latest` from going
stale on an old version. Pre-release detection is kept (it drives the
GitHub Release --prerelease flag). README install line reverted to a
plain `npm install` to match.
@goodlime
goodlime merged commit b9290e7 into main Jun 21, 2026
1 check passed
@goodlime
goodlime deleted the ci/publish-to-latest branch June 21, 2026 15:11
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