From ed523aa336a9dd74356c85a62396fcbf295971b2 Mon Sep 17 00:00:00 2001 From: Pavel Kudinov Date: Sun, 21 Jun 2026 17:03:20 -0700 Subject: [PATCH] ci: create a GitHub Release with generated notes after publish Add a github-release job (needs: publish) that runs `gh release create` with --generate-notes, so every published tag gets a GitHub Release whose notes are built from the PRs merged since the previous release. Uses the runner's preinstalled gh (no third-party action) and contents: write only on this job, keeping the publish job least-privilege. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index caee991..5f00a6f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -62,3 +62,16 @@ jobs: # prepack (clean + tsc) rebuilds dist before packing. - run: npm publish --access public + + github-release: + needs: publish + runs-on: ubuntu-latest + permissions: + contents: write # create the GitHub Release + steps: + # gh is preinstalled on the runner; notes are generated from the PRs + # merged since the previous release. No third-party action. + - name: Create GitHub Release with generated notes + env: + GH_TOKEN: ${{ github.token }} + run: gh release create "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" --verify-tag --generate-notes --latest