Commit 3397ed3
authored
ci: add OIDC canary publish to release.yml via workflow_dispatch (#1352)
* ci: publish PR canaries via OIDC by folding them into release.yml
npm trusted publishing allows exactly one trusted publisher per package (one
repo + one workflow file), and checkly's slot is release.yml — which is why the
normal release publishes via OIDC + --provenance.
release-canary.yml was a separate workflow using a classic NODE_AUTH_TOKEN. That
token was retired when the package moved to OIDC, so a separate workflow could no
longer authenticate and the canary has failed on every PR since.
Fold the canary job into release.yml so it inherits the trusted publisher:
- add a `pull_request: [labeled]` trigger; the release-event jobs now gate on
`github.event_name == 'release'` (PR events cascade-skip via needs: validate-tag).
- the canary job publishes 0.0.0-pr.<N>.<sha> with id-token + --provenance (no
token), tagged `experimental` — or a `canary:<tag>` label's tag, applied at
publish time (trusted publishing authenticates `npm publish`, not a separate
`npm dist-tag add`).
- remove release-canary.yml.
* ci: name canary vs release runs distinctly in the Actions list
Add a run-name expression so PR-label canary runs render as
'Canary build - PR #<n> (<branch>)' and release-event runs as 'Release <tag>',
instead of the default commit-subject run name.
* ci: trigger canary via workflow_dispatch instead of a PR label
A pull_request:labeled trigger fired release.yml on every label on every PR
(jobs skipped, but the release workflow was still invoked). Drop it: the canary
is now a manual workflow_dispatch (`gh workflow run release.yml --ref <branch>`,
optional `-f tag=`), publishing 0.0.0-canary.<sha> via the same OIDC trusted
publisher. release.yml now triggers only on a real release or an explicit
dispatch — never on labels. The build-label mechanism / release-canary.yml are
gone.1 parent 1bd577f commit 3397ed3
2 files changed
Lines changed: 55 additions & 62 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
6 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
7 | 23 | | |
8 | 24 | | |
9 | 25 | | |
| |||
183 | 199 | | |
184 | 200 | | |
185 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
0 commit comments