Skip to content

feat: publish npm RCs from prerelease releases#191

Merged
Egge21M merged 1 commit into
masterfrom
feat/prerelease-publish
Jun 5, 2026
Merged

feat: publish npm RCs from prerelease releases#191
Egge21M merged 1 commit into
masterfrom
feat/prerelease-publish

Conversation

@Egge21M

@Egge21M Egge21M commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Description

This pull request adds prerelease npm publishing for GitHub prerelease releases using Changesets-generated RC versions.

Problem

The existing publish workflow treats all GitHub releases the same. Prerelease GitHub releases need npm prerelease versions published under the rc dist-tag, and repeated RCs need monotonically increasing rc.N versions.

Summary

  • Splits stable and prerelease npm publish jobs.
  • Adds an RC preparation script that advances generated Changesets prerelease versions based on existing npm RC versions.
  • Publishes prerelease packages with changeset publish --tag rc.

Verification

  • bunx changeset pre enter rc
  • bunx changeset version
  • env PATH=/tmp/coco-fake-npm:$PATH bun scripts/prepare-rc-release.ts
  • bun run build
  • ./node_modules/.bin/tsc --noEmit --target ES2022 --module NodeNext --moduleResolution NodeNext --strict --noUncheckedIndexedAccess scripts/prepare-rc-release.ts
  • ./node_modules/.bin/prettier --check .github/workflows/publish.yml scripts/prepare-rc-release.ts
  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/publish.yml", aliases: true); puts "ok"'
  • git diff --check

Changeset

  • No changeset added; this changes release automation only, not package runtime behavior.

@changeset-bot

changeset-bot Bot commented May 31, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1c2911b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Egge21M Egge21M force-pushed the feat/prerelease-publish branch from 62f3113 to 1c2911b Compare June 1, 2026 16:59
@Egge21M Egge21M marked this pull request as ready for review June 2, 2026 08:02
@Egge21M Egge21M merged commit 554c29f into master Jun 5, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in coco Jun 5, 2026
@Egge21M Egge21M deleted the feat/prerelease-publish branch June 5, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant