Skip to content

ci: publish the 0.x line under the npm dist-tag 0.x - #678

Merged
wayfarer3130 merged 2 commits into
0.xfrom
chore/0.x-dist-tag
Nov 27, 2026
Merged

wayfarer3130 merged 2 commits into
0.xfrom
chore/0.x-dist-tag

Conversation

@wayfarer3130

Copy link
Copy Markdown
Contributor

Summary

This PR moves the releases of the 0.x branch from the npm dist-tag latest to the npm dist-tag 0.x. A companion PR on main publishes dcmjs 1.x under the unscoped dcmjs name, with the dist-tag latest.

Merge this PR before the companion PR. Otherwise the next 0.x fix moves dcmjs@latest back from 1.x to 0.54.N.

Changes

  • .releaserc.json: the 0.x branch has "channel": "0.x", not false. semantic-release gives the channel to @semantic-release/npm, which publishes with --tag 0.x.
  • README.md:
    • The install command is pnpm add [email protected]. The README says that the branch is the 0.x maintenance line, for fixes only.
    • The live examples link goes to the branch deploy 0x--dcmjs2.netlify.app. A second link goes to the 1.x examples at dcmjs2.netlify.app.
    • A new section "Releases from the 0.x branch" tells contributors and maintainers to use fix: titles only. A feat: title or a breaking change makes the publish job fail with EINVALIDNEXTVERSION, and the failure blocks each later release from 0.x. The section gives the steps for a maintainer to recover: a PR with a ci: title (not feat:) changes the range to 0.55.x, and its merge releases 0.55.0.

Effect for users

  • npm install [email protected] installs the latest 0.x release.
  • A dependency range such as ^0.54.0 still resolves to the latest 0.x release. A range does not use dist-tags.
  • dcmjs@latest stays at 0.54.1 until the companion PR releases 1.x. A maintainer can add the tag 0.x to 0.54.1 by hand now: npm dist-tag add [email protected] 0.x.

Verification

I ran semantic-release --dry-run --no-ci (25.0.9) on a scratch repository. The repository had this branch as 0.x, the current main, all tags, and one added fix: commit. The result:

  • "Found git tag v0.54.1 associated with version 0.54.1 on branch 0.x"
  • "The next release version is 0.54.2"
  • "Published release 0.54.2 on 0.x channel"

I also tested the recovery steps of the README on the same scratch repository:

  • After an added feat: commit: "The next release version is 0.55.0", and EINVALIDNEXTVERSION.
  • After an added ci: commit that changes the range to 0.55.x: "Published release 0.55.0 on 0.x channel".

Tests

No code change.

🤖 Generated with Claude Code

wayfarer3130 and others added 2 commits November 27, 2026 18:13
The unscoped dcmjs package can then publish 1.x from main under latest.
A 0.x fix no longer moves latest back to 0.54.N.

- .releaserc.json: channel "0.x" for the 0.x branch.
- README: install [email protected]; the branch is the 0.x maintenance line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- README: use fix: titles only on 0.x; a feat: title or a breaking
  change fails the publish job with EINVALIDNEXTVERSION. The steps for
  a maintainer to recover: a ci: PR raises the range to 0.55.x.
- README: links to the 0.x examples (0x--dcmjs2.netlify.app) and to
  the 1.x examples (dcmjs2.netlify.app).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dcmjs2 ready!

Name Link
🔨 Latest commit 27e75aa
🔍 Latest deploy log https://app.netlify.com/projects/dcmjs2/deploys/6b0a11e0e214e03de836baf5
😎 Deploy Preview https://deploy-preview-678--dcmjs2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@wayfarer3130
wayfarer3130 marked this pull request as ready for review November 27, 2026 23:37
@wayfarer3130
wayfarer3130 merged commit 6e09620 into 0.x Nov 27, 2026
12 checks passed
@wayfarer3130
wayfarer3130 deleted the chore/0.x-dist-tag branch November 27, 2026 23:38
wayfarer3130 added a commit that referenced this pull request Nov 28, 2026
…eviews of #678 and #681) (#682)

* docs: correct the 0.x release rules and links (review of #678)

- The npm dist-tag of the 0.x line is release-0.x: npm refuses a
  dist-tag that is a version range, so semantic-release adds the
  prefix. [email protected] still installs the line, as a range.
- The 0.x examples are at 0-x--dcmjs2.netlify.app (Netlify writes the
  "." of the branch name as "-").
- The rule is for the commit that lands on 0.x: for a PR with one
  commit, the squash merge uses the commit title, not the PR title.
- Two ways to recover from a feat: commit: a revert, merged with
  "Rebase and merge" so that the revert message stays exact, or a
  ci: PR that raises the range to 0.55.x.
- examples/vtkDisplay loads [email protected], not the unversioned name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci: name the 0.x channel release-0.x (review of #681, Q3)

npm does not permit the dist-tag 0.x, so @semantic-release/npm
published the channel 0.x as release-0.x. With the channel
release-0.x, the config, the git notes, the GitHub label and the npm
dist-tag have one name. The git note of v0.54.2 already lists
release-0.x, so the first run does not try to add the channel to
v0.54.2 again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: 0.x requires a linear history; check the revert commit (review of #682)

- Each commit that lands on 0.x counts. The branch requires a linear
  history, so a PR merges with "Squash and merge" or "Rebase and
  merge" (review S1, Q2).
- The revert recovery tells the maintainer to check the title and the
  body of the revert commit before the merge (review S2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.54.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant