Skip to content

Commit 76d962a

Browse files
Boshenclaude
andauthored
ci: gate release publish on environment approval with Discord notice (#1571)
## Summary - Add `environment: release` to the `Release` job so npm publishing is gated by a manual approval on the `release` environment. - Introduce a `request-approval` job that fires before the `Release` job and posts a Discord message with a link to the workflow run, so reviewers know an approval is waiting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1aad80d commit 76d962a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,19 @@ jobs:
6060
version: ${{ needs.prepare.outputs.version }}
6161
cache-key: release
6262

63-
Release:
63+
request-approval:
6464
runs-on: ubuntu-latest
6565
needs: [prepare, build-rust]
66+
steps:
67+
- uses: tsickert/discord-webhook@b217a69502f52803de774ded2b1ab7c282e99645 # v7.0.0
68+
with:
69+
webhook-url: ${{ secrets.DISCORD_RELEASES_WEBHOOK_URL }}
70+
content: 'Requesting approval: ${{ github.server_url }}/${{ github.repository }}/actions/workflows/release.yml'
71+
72+
Release:
73+
runs-on: ubuntu-latest
74+
environment: release
75+
needs: [prepare, build-rust, request-approval]
6676
permissions:
6777
contents: write
6878
packages: write

0 commit comments

Comments
 (0)