Skip to content

ci: gate the npm publish on the CI workflow + a release environment - #116

Merged
log0u7 merged 1 commit into
mainfrom
ci/copilot-env-gate
Dec 1, 2026
Merged

log0u7 merged 1 commit into
mainfrom
ci/copilot-env-gate

Conversation

@log0u7

@log0u7 log0u7 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Machine guardrail for releases (decision OPER, autonomy granted):

  1. ci-gate job: waits (max 15 min) for the CI workflow runs on the exact tag commit via the Actions API, then fails if any run is not success or if no run exists. The publish job needs it.
  2. publish job runs in the release environment: tag policy v*, required reviewer log0u7 (Copilot is not possible as a required environment reviewer - the GitHub API only accepts User/Team), wait timer 0, admin bypass disabled.

Environment already created on the repo (env release).

Release freeze unchanged: no tag, no release, no publish in this PR.

- a ci-gate job waits for the CI workflow (both quality jobs) to be green
  on the exact tag commit before the publish job runs; no CI run on the
  commit = publish refused.
- the publish job now runs in the 'release' environment (tag policy v*,
  required reviewer log0u7, admin bypass disabled): every publish waits
  for the explicit approval, no silent releases.
@log0u7
log0u7 merged commit 7416593 into main Dec 1, 2026
3 checks passed
@log0u7
log0u7 deleted the ci/copilot-env-gate branch December 1, 2026 13: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