Skip to content

ci(release): publish a tag only from green CI, and re-drive by tag input - #146

Merged
rennf93 merged 1 commit into
masterfrom
ci/release-from-green-ci
Oct 16, 2026
Merged

rennf93 merged 1 commit into
masterfrom
ci/release-from-green-ci

Conversation

@rennf93

@rennf93 rennf93 commented Oct 16, 2026

Copy link
Copy Markdown
Member

Closes #145

The release workflow of guard-core-ts re-gated at the tag (a tag-push trigger and tests at the tag), after the tag was already immutable, and a manual re-drive read the ref instead of an input. This mirrors Guard-Core/guard-core-rs#156: the release workflow runs no lint or test of its own.

  • verify: resolves the tag from the release event or the manual tag input (^v[0-9]+\.[0-9]+\.[0-9]+$), checks it out, compares it to the package version(s) (all five @GuardCore packages), and requires the newest push run of ci.yml, ecosystem-gate.yml and live-smoke.yml on that commit to have succeeded (it waits up to an hour).
  • publish: checks the tag out explicitly, builds and publishes each package with provenance through npm trusted publishing, skipping any version already on npm (npm view). ci.yml no longer filters push runs by path, so a docs-only tagged commit still gets the run verify requires.

A re-drive is Actions > Release > Run workflow with the tag; it checks the tag out with master's fixed workflow. The tag-push trigger and the tests at the tag are gone.

Tested locally: actionlint clean (the only warnings are pre-existing and identical on master). I ran the CI check step against real commits: the latest release tag passes and a commit whose CI failed is refused. After merging I will dispatch the release with the current latest tag to prove the re-drive path; every package is already published, so publish skips.

@github-actions github-actions Bot added documentation Docs, README, CHANGELOG, governance files ci GitHub Actions labels Oct 16, 2026
@rennf93
rennf93 merged commit a52fae4 into master Oct 16, 2026
19 checks passed
@rennf93
rennf93 deleted the ci/release-from-green-ci branch October 16, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub Actions documentation Docs, README, CHANGELOG, governance files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish from green CI instead of re-gating at the tag

1 participant