Commit 61dfbf3
committed
fix(ci): split release.yml into version + publish jobs
Fixes the failed alpha.1 publish (run 23850387096). Two issues:
1. changesets/action passed 'publish: pnpm run build:all && pnpm
changeset publish' as argv, not through a shell — '&&' became a
literal arg forwarded to tsdown. Wrapped in package.json ci:publish
script.
2. NPM_TOKEN is environment-scoped to 'release' but the job had no
environment. Now the publish job has environment: release.
Split into two jobs so the Version PR auto-updates (ungated) but
publish requires environment approval. The version job's hasChangesets
output gates the publish job.
Also enables provenance (id-token: write + NPM_CONFIG_PROVENANCE).1 parent 54fa96e commit 61dfbf3
2 files changed
Lines changed: 44 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
| |||
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
15 | | - | |
16 | | - | |
| 11 | + | |
| 12 | + | |
17 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
39 | 72 | | |
40 | 73 | | |
41 | | - | |
| 74 | + | |
42 | 75 | | |
43 | 76 | | |
44 | 77 | | |
45 | 78 | | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments