Repository navigation
ci: release the 0.x line from the solid-1 branch - #20
Merged
Merged
Conversation
Changesets and the workflows now target solid-1. Releases publish under the solid-1 npm tag, so a 0.x release never takes latest from the 1.x line. changeset publish passes --tag latest unless it is given a tag, so the release script sets --tag solid-1 next to publishConfig. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit: |
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.
Sets up changesets releases for the Solid 1.x line (0.x) on
solid-1.Changes
.changeset/config.json:baseBranchis nowsolid-1.release.yml,tests.ymlandcr.yml: these run onsolid-1instead ofmain. The release PR is titled "chore: release (solid-1)", so it can't be confused with the one onmain.package.json:releaserunschangeset publish --tag solid-1.publishConfig.tagissolid-1.changeset publishpasses--tag latestunless it is given a tag (getReleaseTagin@changesets/cli2.31.1). So the script flag is what keeps a 0.x release from takinglatestfrom 1.0.0.npm i @solidjs/image@0, and a link tomainfor Solid 2.No changeset, since nothing in the package changes.
How a 0.x release works after this
solid-1with a changeset.solid-1tag and pushes a git tag.npm i @solidjs/image@0and@solidjs/image@solid-1both resolve to it.lateststays on 1.x.When this merges, the release workflow runs once on
solid-1. There are no changesets, and 0.4.1 is already on npm, so it publishes nothing.Checks
pnpm build,pnpm test(209 tests) andpnpm pack --dry-runpass locally.Open question
The workflow publishes through npm trusted publishing. If the trusted publisher on npmjs.com is limited to
mainor to a GitHub environment, the first publish fromsolid-1fails. An@solidjsnpm org owner can check that.🤖 Generated with Claude Code