Repository navigation
Release automation: tag + GitHub Release on release/* -> main merge (issue #7) - #13
Merged
Merged
Conversation
release/0.0.0 -> 0.0.0, release/1.2.3-beta.1 -> 1.2.3-beta.1 (suffix passes through unchanged), feat/something -> null (guards the release-workflow trigger decision).
… -> main merge (issue #7) Triggers on pull_request:closed to main, guarded by merged==true and head ref starting with release/ (parseVersion returning null would also short-circuit, but the startsWith guard keeps non-release PRs from ever reaching the job). No changelog, no npm publish, no marketplace submission — tag + release only, per ADR 0006/0007's personal-first posture (ADR 0005).
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.
Closes #7
Summary
src/release/parse-version.js—parseVersion(branchName):release/0.0.0->0.0.0,release/1.2.3-beta.1->1.2.3-beta.1(pre-release suffix passes through), anything else ->
null.bin/parse-version.js— thin CLI wrapper the workflow shells out to..github/workflows/release.yml—pull_request: [closed]restricted tobase
mainat the trigger level, further guarded in the job bymerged == trueandhead.refstarting withrelease/. On match: tagsvX.Y.Zand creates a GitHub Release namedX.Y.Zviagh release create --generate-notes. No changelog step, no npm publish, nomarketplace submission — matches ADR 0005/0006's personal-first,
tag-and-release-only scope.
Test plan
parseVersiongreen (npm test, 22/22 total).bin/parse-version.jssmoke-tested directly:release/0.0.0-> prints0.0.0exit 0;feat/foo-> stderr message, exit 1.release/*->mainmerge) can't bedry-run yet — GitHub uses the workflow file as it exists on the base
branch (
main) forpull_requestevents, and this workflow doesn'texist there until this PR eventually lands via
release/0.0.0->main. The 4 trigger-guard acceptance criteria are satisfied byconstruction (branch-level
branches: [main]filter + job-levelmerged/head.refguards) but the real fire will be the nextrelease/0.0.0->mainmerge itself.