You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git tag -a "$TAG_CORE" -m "Release $TAG_CORE (@razroo/ray-core)"
77
-
git tag -a "$TAG_SDK" -m "Release $TAG_SDK (@razroo/ray-sdk)"
78
-
git push --atomic origin "$TAG_CORE""$TAG_SDK"
74
+
bun run release:github -- --dry-run
75
+
bun run release:github -- --yes
79
76
```
80
77
81
-
Push linked package tagsatomically so a failed push cannot publish only one side of the release pair.
78
+
The helper checks that the working tree is clean, `main` is synced with `origin/main`, package versions match, and GitHub CLI auth is available. It creates annotated `core-v…` and `sdk-v…`tags, pushes them atomically, creates both GitHub Releases, and safely reuses already-created annotated tags or releases on retry.
82
79
83
-
3. Create GitHub Releases (fires the npm workflows):
- Confirms the release tag commit is reachable from `origin/main`.
92
82
- Uses **`gh api`** to confirm the **`quality`** check run on the tagged commit succeeded (geometra-style gate before npm).
93
83
- Runs **`packages/*/scripts/release/check-source.mjs`** so the tag matches `package.json`.
94
84
-**`bun run build`**, **`bun pm pack`**, then **`npm publish <tarball> --provenance`** with OIDC provenance (`id-token: write`).
95
85
96
-
5. Omit or delete a faulty GitHub Release and tag before re-cutting; avoid amending published tags.
97
-
98
-
### One-command tags + GitHub Releases (`gh`)
99
-
100
-
After **`bun run version`** is committed on **`main`** and pushed (`git push origin main`), you can create both tags and GitHub Releases with:
101
-
102
-
```bash
103
-
bun run release:github -- --dry-run # plan only
104
-
bun run release:github -- --yes # tag, git push --atomic tags, gh release create ×2
105
-
```
86
+
4. Omit or delete a faulty GitHub Release and tag before re-cutting; avoid amending published tags.
106
87
107
88
Requires [**GitHub CLI**](https://cli.github.com/) (`gh`) authenticated (`gh auth login`). If a transient failure leaves local or remote annotated tags at the release commit, or creates one GitHub Release before the other, the helper reuses the safe pieces on retry and creates only what is still missing; local or remote lightweight tags, tags pointing elsewhere, and ambiguous release probes fail closed. NPM publish still runs in Actions when each release is **published**.
"npm release workflow cutting comments must point maintainers at `bun run release:github` so release tags and GitHub Releases use the guarded helper.",
"npm release workflow cutting comments must not document direct git tag, git push, or gh release create commands; use `bun run release:github` instead.",
0 commit comments