Repository navigation
ci(release): publish from a separate job so failed publishes can be re-run - #21
Merged
Merged
Conversation
…e-run The cut job now only bumps, tags and pushes. A shared publish job runs for tag pushes and after a cut, so Re-run failed jobs retries the existing tag. Aligns release.yml across the opencode-* repos.
cut gets contents: write only; publish adds id-token: write and checks out refs/tags/<tag> without persisted credentials. The tag push is atomic and expression values reach run blocks through env.
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.
Summary
Splits
release.ymlinto acutjob (bump, changelog, commit, tag, push) and a sharedpublishjob.publishruns forv*tag pushes and after a successful cut, checks out the tag, and keeps the existing safety checks: tag matches package version, skip if already on npm, edit the release if it already exists.If publishing fails, Re-run failed jobs retries only
publishat the existing tag. Today, a rerun re-cuts frommain, finds no notable commits and never publishes.RELEASING.mddocuments the retry.The same file now goes into ghost, ember, sesh and quill. The only difference is sesh's apt step that installs its test tools. The workflow filename is unchanged, so the npm trusted-publisher settings still apply.
Type of change
Checklist
bun run testpasses.bun run typecheckpasses.bun run lint:shandbash scripts/changelog.sh checkpass.prompt.footercomposer marker, placeholder ownership or scoped accept-key behaviour.