Replace local release script with GitHub Actions workflow trigger#117
Merged
Replace local release script with GitHub Actions workflow trigger#117
Conversation
- Rewrite scripts/publish.sh as a thin wrapper that validates preconditions and triggers release.yml via `gh workflow run` - Harden release.yml: add concurrency protection, replace `gh release create` with softprops/action-gh-release@v2, add build:readme step for releases - Fix scripts/update-readme.sh sed portability (macOS → Linux) - Add `release:pre` npm script for pre-releases - Update CLAUDE.md releasing section and CHANGELOG.md Closes #116 https://claude.ai/code/session_01KkbQ8d5Ek41pyNtu3XAMQt
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
Closes #116
scripts/publish.shfrom a 255-line local release script to a ~70-line thin wrapper that validates preconditions (gh auth, branch, clean workdir, up-to-date) and triggersrelease.ymlviagh workflow run, then opens the run URL in the browserrelease.yml: addedconcurrency: { group: release, cancel-in-progress: false }to prevent concurrent releases, replacedgh release createCLI withsoftprops/action-gh-release@v2(more reliable), addedbuild:readmestep for releases, includedREADME.mdin the version-bump commitscripts/update-readme.shcross-platform sed issue (sed -i ''is macOS-only, changed tosed -ifor Ubuntu CI runners)release:prenpm script for pre-releases (npm run release:pre)Note: missing v0.2.0 GitHub release
The
v0.2.0tag exists but no GitHub release was created (the original workflow failed). This needs to be created manually by a maintainer — there's no "create release" API available through the current tooling. Run:gh release create v0.2.0 --title "v0.2.0" --generate-notesTest plan
bash -n scripts/publish.sh)release.ymlworkflow runs correctly on next release triggersoftprops/action-gh-release@v2creates GitHub releases properlybuild:readmestep works on Ubuntu CI runner (sed fix)https://claude.ai/code/session_01KkbQ8d5Ek41pyNtu3XAMQt