Commit 74dc0b5
ci(release): replace release.sh prepare hook with explicit named workflow steps
The build-dist and kit-version-update responsibilities previously hidden
inside scripts/release.sh (called via semantic-release's prepareCmd hook)
are now two named, visible steps in the staging-step-1.yml release job:
1. 'Build distribution bundle' — npm run build + git add dist -f + commit
2. 'Update kit versions to X.Y.Z' — npm pkg set version for every kit in
kits/matrix.json + commit kits/**/package.json
Both steps run only on a real release (dryRun == 'false') and execute after
the existing dry-run step captures the next version, so the version is
available via steps.get-version.outputs.version.
release.config.js is updated in lockstep:
- prepareCmd removed from @semantic-release/exec (only publishCmd remains)
- kits/**/package.json removed from @semantic-release/git assets (those
package.jsons are now committed by the explicit workflow step before
semantic-release runs, so they are already clean when the git plugin
stages its assets)
The end-to-end ordering is unchanged: the two prep commits land on the
local staging branch before npx semantic-release runs; @semantic-release/git
pushes all local commits to staging; release-kits (which needs: release)
then checks out the updated staging branch and publishes each kit at the
correct version.
Refs #1210
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent aa071b2 commit 74dc0b5
3 files changed
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
369 | 387 | | |
370 | 388 | | |
371 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
This file was deleted.
0 commit comments