Skip to content

Publish prereleases under the next npm tag - #32

Merged
fiws merged 1 commit into
mainfrom
push-prerelease-npm-dist-tag
Sep 3, 2026
Merged

fiws merged 1 commit into
mainfrom
push-prerelease-npm-dist-tag

Conversation

@fiws

@fiws fiws commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • select the npm dist-tag from the package version
  • publish prereleases under next and stable releases under latest
  • ignore build metadata when detecting prerelease versions

Verification

  • actionlint .github/workflows/*.yml
  • pnpm publish --dry-run --tag next --no-git-checks

Note

Low Risk
CI-only release wiring; no runtime or package code changes, though a wrong tag choice could mislabel a release on npm.

Overview
The publish workflow no longer runs a bare pnpm publish, which always used npm’s default latest tag.

It now reads package.json version, strips build metadata after +, and sets next when the version contains a prerelease segment (e.g. 0.8.0-1) or latest for stable semver. Publish runs with pnpm publish --tag <chosen> --no-git-checks.

Reviewed by Cursor Bugbot for commit bf60e9a. Bugbot is set up for automated code reviews on this repo. Configure here.

@pkg-pr-new

pkg-pr-new Bot commented Sep 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/effect-playwright@bf60e9a

commit: bf60e9a

@fiws
fiws merged commit e58080f into main Sep 3, 2026
5 checks passed
@fiws
fiws deleted the push-prerelease-npm-dist-tag branch September 3, 2026 08:20
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