Skip to content

ci: name the 0.x channel release-0.x; correct the 0.x release docs (reviews of #678 and #681) - #682

Merged
wayfarer3130 merged 3 commits into
0.xfrom
docs/0.x-release-docs
Nov 28, 2026
Merged

wayfarer3130 merged 3 commits into
0.xfrom
docs/0.x-release-docs

Conversation

@wayfarer3130

@wayfarer3130 wayfarer3130 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR corrects the 0.x release text that #678 added to the README, and it renames the channel of the 0.x branch to release-0.x. The changes come from the reviews of #678 and #681.

Changes

  • .releaserc.json: the channel of the 0.x branch is release-0.x, not 0.x. npm refuses a dist-tag that is a version range, so @semantic-release/npm maps the channel 0.x to the dist-tag release-0.x (its try to add that tag after ci: publish the 0.x line under the npm dist-tag 0.x #678 failed, see below). With this PR, the 0.x config, the git notes, the GitHub label (released on @release-0.x) and the npm dist-tag have one name. The copy of this entry on main changes to release-0.x in feat: publish dcmjs 1.x under the unscoped dcmjs name too #681.
  • README.md:
    • The npm dist-tag of the 0.x line is release-0.x. [email protected] still installs the latest 0.x release, because npm reads 0.x as a version range.
    • The link to the 0.x examples is https://0-x--dcmjs2.netlify.app/. Netlify writes the . of the branch name as -, so https://0x--dcmjs2.netlify.app/ gives 404.
    • 0.x requires a linear history (a new repository ruleset), so a PR merges with "Squash and merge" or "Rebase and merge". The release rule is for each commit that lands on 0.x, not for the PR title. The repository uses COMMIT_OR_PR_TITLE, so for a PR with one commit, the squash merge uses the commit title. The squash body lists the messages of all commits, so a BREAKING CHANGE: footer in any commit also counts. The older paragraph about the PR title now says the same.
    • Two ways to recover from a feat: commit on 0.x:
      • A revert, if the feature does not belong on the fix-only line. The maintainer checks the title and the body of the revert commit, and merges the revert PR with "Rebase and merge".
      • A ci: PR that changes the range to 0.55.x. This PR must also change 0.54 to 0.55 in the README section.
  • examples/vtkDisplay/index.html: the script loads https://unpkg.com/[email protected], not https://unpkg.com/dcmjs. After 1.x publishes under the unscoped name (feat: publish dcmjs 1.x under the unscoped dcmjs name too #681), the unversioned URL serves 1.x.

Decisions taken from the review

The review of #678 has three questions. This PR uses the recommendation of each:

Verification

A dry run of this branch with an added fix: commit gives "Published release 0.54.3 on release-0.x channel".

The git note of v0.54.2 had the channels [null, "0.x"]. With the new channel name, the first run after the merge would add the channel to v0.54.2 again, and npm dist-tag add fails with E401 (see below). I added release-0.x to the note and pushed it (refs/notes/semantic-release-v0.54.2 is now {"channels":[null,"0.x","release-0.x"]}). A dry run with the old note showed "Skip v0.54.2 tag creation" (the add-channel step), and a dry run with the new note did not.

I tested the revert recovery with semantic-release --dry-run --no-ci (25.0.9) on a scratch repository. Each run had the current 0.x, a feat: commit, a revert of that commit, and a fix: commit:

Revert commit message Result
Title Revert "feat: ...", body This reverts commit <sha>. (the git revert default) 0.54.3
The same title with (#901) at the end 0.55.0, so EINVALIDNEXTVERSION
The git revert title, and the body starts with * Revert "feat: ..." 0.55.0, so EINVALIDNEXTVERSION
Both changes, which is a squash merge of the GitHub "Revert" PR 0.55.0, so EINVALIDNEXTVERSION

Thus only a revert commit with the exact git revert message clears the block. "Rebase and merge" keeps that message. A squash merge changes it. The repository allows rebase merges.

I did not test the message of the commit that the GitHub "Revert" button makes. The README tells the maintainer to check the title and the body.

After the merge

The publish run of 0.x before this PR (after #678) failed in the addChannel step. It ran npm dist-tag add [email protected] release-0.x, and npm answered E401: the OIDC token of trusted publishing covers npm publish, not npm dist-tag. The git note of v0.54.2 lists the channel, so no run tries again. A maintainer adds the tag by hand:

npm dist-tag add [email protected] release-0.x --otp=<code>

This PR has a ci: title, so its merge releases nothing.

🤖 Generated with Claude Code

- 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]>
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dcmjs2 ready!

Name Link
🔨 Latest commit f5a6e1e
🔍 Latest deploy log https://app.netlify.com/projects/dcmjs2/deploys/6b0a20e63ca98c98261f1ac3
😎 Deploy Preview https://deploy-preview-682--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.

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]>
@wayfarer3130 wayfarer3130 changed the title docs: correct the 0.x release rules and links (review of #678) ci: name the 0.x channel release-0.x; correct the 0.x release docs (reviews of #678 and #681) Nov 27, 2026
#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]>
@wayfarer3130
wayfarer3130 marked this pull request as ready for review November 28, 2026 00:36
@wayfarer3130
wayfarer3130 merged commit 601a727 into 0.x Nov 28, 2026
12 checks passed
@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