Repository navigation
ci: publish the 0.x line under the npm dist-tag 0.x - #678
Merged
Merged
Conversation
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]>
✅ Deploy Preview for dcmjs2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
wayfarer3130
marked this pull request as ready for review
November 27, 2026 23:37
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]>
|
🎉 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 moves the releases of the
0.xbranch from the npm dist-taglatestto the npm dist-tag0.x. A companion PR onmainpublishes dcmjs 1.x under the unscopeddcmjsname, with the dist-taglatest.Merge this PR before the companion PR. Otherwise the next 0.x fix moves
dcmjs@latestback from 1.x to0.54.N.Changes
.releaserc.json: the0.xbranch has"channel": "0.x", notfalse. semantic-release gives the channel to@semantic-release/npm, which publishes with--tag 0.x.README.md:pnpm add [email protected]. The README says that the branch is the 0.x maintenance line, for fixes only.0x--dcmjs2.netlify.app. A second link goes to the 1.x examples atdcmjs2.netlify.app.fix:titles only. Afeat:title or a breaking change makes the publish job fail withEINVALIDNEXTVERSION, and the failure blocks each later release from0.x. The section gives the steps for a maintainer to recover: a PR with aci:title (notfeat:) changes the range to0.55.x, and its merge releases0.55.0.Effect for users
npm install [email protected]installs the latest 0.x release.^0.54.0still resolves to the latest 0.x release. A range does not use dist-tags.dcmjs@lateststays at0.54.1until the companion PR releases 1.x. A maintainer can add the tag0.xto0.54.1by 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 as0.x, the currentmain, all tags, and one addedfix:commit. The result:I also tested the recovery steps of the README on the same scratch repository:
feat:commit: "The next release version is 0.55.0", andEINVALIDNEXTVERSION.ci:commit that changes the range to0.55.x: "Published release 0.55.0 on 0.x channel".Tests
No code change.
🤖 Generated with Claude Code