Commit e520fbb
committed
ci(release): gate release pipeline to version-shaped tags only
The `release: published` event fires for ANY GitHub release, including
non-package releases that merely host assets — e.g. the `embed-v1`
embedder-weights release this PR introduces (model-pins.ts pins its
URLs). Creating that release triggered the full build → sign →
npm-publish pipeline, which would have published every package to npm
(OCH_NPM_PUBLISH_ENABLED is true). It was cancelled in time and built
from main (not this branch), so nothing leaked, but the trigger must be
filtered.
Gate the `resolve` job (root of the chain; everything else `needs` it
under a success() gate) to version-shaped tags only: `root-v*`, `cli-v*`,
or bare `v*` (the release-please conventions). `workflow_call` /
`workflow_dispatch` pass an explicit tag input and remain unaffected. A
weights tag like `embed-v1` now skips the pipeline entirely.1 parent 79ebc54 commit e520fbb
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
70 | 82 | | |
71 | 83 | | |
72 | 84 | | |
| |||
0 commit comments