Commit 0d0238f
authored
fix: manual release runs should version pending changesets and always re-deploy (#1394)
## Summary
Manually `workflow_dispatch`-ing this workflow to test `deploy-cdn`
(against a non-release commit - no pending changeset, no version bump)
surfaced `create-release-from-tags` throwing `No git tags found`, since
`changeset publish` correctly produced zero new tags (nothing new to
publish). That's an expected outcome for a no-op release run, not a
failure - it now logs and returns instead of throwing.
`Deploy to CDN` never got a chance to run in that failed run, since it
depends on `publish` succeeding - this fix is what actually lets
`deploy-cdn` run on a manual dispatch that isn't a real version bump, so
the current build gets re-uploaded to the CDN.
## What this PR does NOT do (reverted from an earlier version)
An earlier version of this PR also had a manual `workflow_dispatch` run
version pending changesets directly and push a "Version Packages" commit
straight to `master`, bypassing PR review. That was wrong: a release
should be a read-only operation against a commit already on `master` -
tag it, publish it to npm, cut a GitHub release, deploy it to the CDN -
never a vehicle for landing new code (a version bump is a code change
and belongs in a reviewed PR like every other change). That step has
been removed.
The correct fix for "how does a new version actually get released" is
making the normal, reviewed path work again: `release-creator.yml` opens
a "Version Packages" PR for pending changesets, someone reviews and
merges it, and *that* merge is the commit a release tags and publishes.
## Separately found, not fixed here
`release-creator.yml` (opens the "Version Packages" PR) has failed with
`startup_failure` on every run since at least 2026-07-16 - 0 jobs run,
consistent with a workflow-level rejection rather than a step failure.
Strong suspicion: `changesets/action@a45c4d594` is a third-party action,
likely hitting the same allowed-actions restriction fixed for
`aws-actions/configure-aws-credentials` in #1393. Fixing that is the
actual path to cutting new releases again - not addressed in this PR.
## Test plan
- [x] `scripts/create-release-from-tags/__tests__/index.test.ts` still
passes
- [x] `tsc` clean on the modified script (pre-push hook)
- [ ] Manual `workflow_dispatch` run against current `master` (no
pending version bump) completes `publish` and `deploy-cdn` without error
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 1e9ac21 commit 0d0238f
4 files changed
Lines changed: 62 additions & 7 deletions
File tree
- .github/workflows
- packages/browser
- scripts/create-release-from-tags
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
64 | 95 | | |
65 | 96 | | |
66 | | - | |
| 97 | + | |
67 | 98 | | |
68 | 99 | | |
69 | 100 | | |
| |||
89 | 120 | | |
90 | 121 | | |
91 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
92 | 128 | | |
93 | 129 | | |
94 | 130 | | |
95 | 131 | | |
96 | 132 | | |
97 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
98 | 137 | | |
99 | 138 | | |
100 | 139 | | |
| |||
104 | 143 | | |
105 | 144 | | |
106 | 145 | | |
107 | | - | |
| 146 | + | |
108 | 147 | | |
109 | 148 | | |
110 | 149 | | |
| |||
140 | 179 | | |
141 | 180 | | |
142 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
143 | 187 | | |
144 | 188 | | |
145 | 189 | | |
| |||
150 | 194 | | |
151 | 195 | | |
152 | 196 | | |
153 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
259 | 265 | | |
260 | 266 | | |
261 | 267 | | |
| |||
0 commit comments