Skip to content

ci: release the 0.x line from the solid-1 branch - #20

Merged
lxsmnsyc merged 1 commit into
solid-1from
ci/solid-1-release
Nov 27, 2026
Merged

lxsmnsyc merged 1 commit into
solid-1from
ci/solid-1-release

Conversation

@lxsmnsyc

Copy link
Copy Markdown
Member

Sets up changesets releases for the Solid 1.x line (0.x) on solid-1.

Changes

  • .changeset/config.json: baseBranch is now solid-1.
  • release.yml, tests.yml and cr.yml: these run on solid-1 instead of main. The release PR is titled "chore: release (solid-1)", so it can't be confused with the one on main.
  • package.json:
    • release runs changeset publish --tag solid-1.
    • publishConfig.tag is solid-1.
    • changeset publish passes --tag latest unless it is given a tag (getReleaseTag in @changesets/cli 2.31.1). So the script flag is what keeps a 0.x release from taking latest from 1.0.0.
  • README: install with npm i @solidjs/image@0, and a link to main for Solid 2.

No changeset, since nothing in the package changes.

How a 0.x release works after this

  1. Open a PR into solid-1 with a changeset.
  2. Merge it. The release workflow opens "chore: release (solid-1)".
  3. Merge that. CI publishes the new 0.x version under the solid-1 tag and pushes a git tag.

npm i @solidjs/image@0 and @solidjs/image@solid-1 both resolve to it. latest stays 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) and pnpm pack --dry-run pass locally.

Open question

The workflow publishes through npm trusted publishing. If the trusted publisher on npmjs.com is limited to main or to a GitHub environment, the first publish from solid-1 fails. An @solidjs npm org owner can check that.

🤖 Generated with Claude Code

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>
@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/image@20

commit: 64e29fe

@lxsmnsyc
lxsmnsyc merged commit 01be563 into solid-1 Nov 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant