Skip to content

ci(release): publish prereleases as latest until a stable release - #16

Merged
aicayzer merged 1 commit into
mainfrom
ci/prereleases-to-latest
Nov 29, 2026
Merged

aicayzer merged 1 commit into
mainfrom
ci/prereleases-to-latest

Conversation

@aicayzer

Copy link
Copy Markdown
Contributor

Summary

Every release so far is a prerelease, so publishing them under alpha left npm's latest on 0.0.1-alpha.1 while alpha moved on, and moving latest needs a maintainer's npm login, because trusted publishing covers only npm publish.

The publish step now uses latest for a prerelease while npm's latest is missing or itself a prerelease, and alpha once a stable version exists. The README and AGENTS.md say so, and the install command no longer needs @alpha.

Testing

The case statement was checked by hand for an empty current tag, a prerelease current tag and a stable current tag. The next tagged release exercises it.

@aicayzer
aicayzer merged commit 1e8adc2 into main Nov 29, 2026
3 of 4 checks passed
@aicayzer
aicayzer deleted the ci/prereleases-to-latest branch November 29, 2026 22:26
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