Skip to content

Commit 8936bf5

Browse files
Print publish workflow URL during release commands
After creating the GitHub release, the commands now fetch and display the triggered publish workflow run URL so the user can go approve it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e09e543 commit 8936bf5

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.claude/commands/prerelease.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
git push origin v<current-version>
1010
gh release create v<current-version> --prerelease --title "v<current-version>" --notes ""
1111
```
12-
5. Increment the rc number: `-rc.5``-rc.6`
13-
6. Update the version in `packages/dependicus/package.json`
14-
7. Run `mise update-all-lockfiles` to update all lockfiles
15-
8. Commit and push:
12+
5. Find the publish workflow run triggered by the release and print its URL for the user:
13+
```bash
14+
gh run list --workflow=publish.yml --limit=1 --json databaseId,url --jq '.[0].url'
15+
```
16+
Tell the user this run requires environment approval before it will publish.
17+
6. Increment the rc number: `-rc.5``-rc.6`
18+
7. Update the version in `packages/dependicus/package.json`
19+
8. Run `mise update-all-lockfiles` to update all lockfiles
20+
9. Commit and push:
1621
```bash
1722
git add packages/dependicus/package.json pnpm-lock.yaml package-lock.json yarn.lock bun.lock
1823
git commit -m "Begin v<new-version> development"

.claude/commands/release.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
git push origin v<version>
1818
gh release create v<version> --title "v<version>" --notes-file <(extract release notes from CHANGELOG.md for this version)
1919
```
20-
9. Bump to the next patch version with `-rc.0` suffix (e.g., `0.1.9``0.1.10-rc.0`), add a new unreleased section to CHANGELOG.md, run `mise update-all-lockfiles`, then commit and push:
20+
9. Find the publish workflow run triggered by the release and print its URL for the user:
21+
```bash
22+
gh run list --workflow=publish.yml --limit=1 --json databaseId,url --jq '.[0].url'
23+
```
24+
Tell the user this run requires environment approval before it will publish.
25+
10. Bump to the next patch version with `-rc.0` suffix (e.g., `0.1.9``0.1.10-rc.0`), add a new unreleased section to CHANGELOG.md, run `mise update-all-lockfiles`, then commit and push:
2126
```bash
2227
git add packages/dependicus/package.json CHANGELOG.md pnpm-lock.yaml package-lock.json yarn.lock bun.lock
2328
git commit -m "Begin v<next-version> development"

0 commit comments

Comments
 (0)