Commit e244038
authored
ci: simplify publish auth flow (#33)
## Summary
- remove PAT-based release mutation from the publish workflow
- align release flow with the simpler ui-style model
- update README release docs to match the actual workflow
## Changes
- remove `workflow_dispatch` bump input
- stop bumping and committing `package.json` inside the release workflow
- remove `secrets.RELEASE_PAT` dependency from checkout
- add a tag-exists guard before release tagging
- keep npm publishing on OIDC with provenance
- document the new flow in `README.md`
## Release model after this PR
- version bump happens in a normal PR to `main`
- canary publishes on pushes to `main`
- release workflow is manually dispatched
- release job reads current package version, tags it, publishes via
OIDC, and creates a GitHub release
## Validation
- `pnpm lint`
- `pnpm typecheck`
- `pnpm build`
- `pnpm test`1 parent 9a66c1b commit e244038
2 files changed
Lines changed: 27 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 10 | + | |
20 | 11 | | |
21 | 12 | | |
22 | 13 | | |
| |||
78 | 69 | | |
79 | 70 | | |
80 | 71 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 72 | | |
85 | 73 | | |
86 | 74 | | |
87 | 75 | | |
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
91 | | - | |
| 79 | + | |
92 | 80 | | |
93 | | - | |
| 81 | + | |
94 | 82 | | |
95 | 83 | | |
96 | 84 | | |
| |||
104 | 92 | | |
105 | 93 | | |
106 | 94 | | |
107 | | - | |
108 | 95 | | |
109 | 96 | | |
110 | 97 | | |
| |||
119 | 106 | | |
120 | 107 | | |
121 | 108 | | |
122 | | - | |
| 109 | + | |
123 | 110 | | |
124 | 111 | | |
125 | | - | |
126 | 112 | | |
127 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
128 | 118 | | |
129 | 119 | | |
130 | 120 | | |
| |||
163 | 153 | | |
164 | 154 | | |
165 | 155 | | |
166 | | - | |
| 156 | + | |
167 | 157 | | |
168 | 158 | | |
169 | 159 | | |
170 | | - | |
171 | | - | |
172 | 160 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 161 | + | |
177 | 162 | | |
178 | 163 | | |
179 | 164 | | |
180 | 165 | | |
181 | 166 | | |
182 | 167 | | |
183 | | - | |
| 168 | + | |
184 | 169 | | |
185 | 170 | | |
186 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 210 | + | |
216 | 211 | | |
217 | 212 | | |
218 | 213 | | |
219 | 214 | | |
220 | 215 | | |
221 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
228 | 233 | | |
229 | | - | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
0 commit comments