Repository navigation
ci: name the 0.x channel release-0.x; correct the 0.x release docs (reviews of #678 and #681) - #682
Merged
Merged
Conversation
- 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]>
✅ Deploy Preview for dcmjs2 ready!
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]>
#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
marked this pull request as ready for review
November 28, 2026 00:36
|
🎉 This PR is included in version 0.54.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR corrects the 0.x release text that #678 added to the README, and it renames the channel of the
0.xbranch torelease-0.x. The changes come from the reviews of #678 and #681.Changes
.releaserc.json: the channel of the0.xbranch isrelease-0.x, not0.x. npm refuses a dist-tag that is a version range, so@semantic-release/npmmaps the channel0.xto the dist-tagrelease-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, the0.xconfig, the git notes, the GitHub label (released on @release-0.x) and the npm dist-tag have one name. The copy of this entry onmainchanges torelease-0.xin feat: publish dcmjs 1.x under the unscoped dcmjs name too #681.README.md:release-0.x.[email protected]still installs the latest 0.x release, because npm reads0.xas a version range.https://0-x--dcmjs2.netlify.app/. Netlify writes the.of the branch name as-, sohttps://0x--dcmjs2.netlify.app/gives 404.0.xrequires 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 on0.x, not for the PR title. The repository usesCOMMIT_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 aBREAKING CHANGE:footer in any commit also counts. The older paragraph about the PR title now says the same.feat:commit on0.x:ci:PR that changes the range to0.55.x. This PR must also change0.54to0.55in the README section.examples/vtkDisplay/index.html: the script loadshttps://unpkg.com/[email protected], nothttps://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:
release-0.x(the decision of Q3 of feat: publish dcmjs 1.x under the unscoped dcmjs name too #681).dcmjs2.netlify.app. The Netlify production branch is nowmain. The production deploy now serves the 1.x bundle.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.2had the channels[null, "0.x"]. With the new channel name, the first run after the merge would add the channel tov0.54.2again, andnpm dist-tag addfails with E401 (see below). I addedrelease-0.xto the note and pushed it (refs/notes/semantic-release-v0.54.2is 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 current0.x, afeat:commit, a revert of that commit, and afix:commit:Revert "feat: ...", bodyThis reverts commit <sha>.(thegit revertdefault)0.54.3(#901)at the end0.55.0, soEINVALIDNEXTVERSIONgit reverttitle, and the body starts with* Revert "feat: ..."0.55.0, soEINVALIDNEXTVERSION0.55.0, soEINVALIDNEXTVERSIONThus only a revert commit with the exact
git revertmessage 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.xbefore this PR (after #678) failed in theaddChannelstep. It rannpm dist-tag add [email protected] release-0.x, and npm answered E401: the OIDC token of trusted publishing coversnpm publish, notnpm dist-tag. The git note ofv0.54.2lists the channel, so no run tries again. A maintainer adds the tag by hand:This PR has a
ci:title, so its merge releases nothing.🤖 Generated with Claude Code