Commit 9fb61b4
authored
feat: switch to label-driven releases with workflow_dispatch escape hatch (#160)
## Summary
- Removes the `release: published` trigger (was the source of the
circular tag problem)
- Adds `workflow_dispatch` trigger with `bump-type` input
(patch/minor/major) as an escape hatch for "I forgot to add the label"
- Adds a `detect-mode` job that reads the merged PR's labels to decide
dev vs release mode
- Passes `bump-type` through to the reusable workflow so
`workflow_dispatch` works without a PR to read labels from
## How releases work now
**Normal flow (merge with label):**
1. Add `release`, `release:minor`, or `release:major` label to the PR
before merging
2. Merge to `main` — CI detects the label, runs in release mode, bumps
version, tags, publishes to npm, creates GitHub Release
**Forgot the label (escape hatch):**
1. Go to Actions → "Publish UI to NPM" → Run workflow
2. Choose bump type (patch/minor/major)
3. Workflow runs in release mode manually
**No label (default):**
- Publishes a dev build (`x.y.z-dev.{sha}`) to the `@dev` npm dist-tag
only
## Dependency
Requires `datum-cloud/actions` datum-cloud/actions#59 to be merged and
tagged as `v1.13.0` first — this workflow references that version.
## Test plan
- [ ] datum-cloud/actions#59 merged and tagged `v1.13.0`
- [ ] Update the `@v1.13.0` reference in this file once that tag exists
- [ ] Merge a PR without a release label → confirm dev build published,
no GH Release created
- [ ] Merge a PR with `release:minor` label → confirm minor version bump
+ GH Release
- [ ] Trigger `workflow_dispatch` with `major` → confirm major bump + GH
Release1 file changed
Lines changed: 60 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | | - | |
12 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
16 | | - | |
| 26 | + | |
17 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 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 | + | |
| 72 | + | |
0 commit comments