From 6783d893a06553581279aa98e47432e59dfaff09 Mon Sep 17 00:00:00 2001 From: Santiago Date: Thu, 27 Aug 2026 08:19:20 -0300 Subject: [PATCH] ci: create a GitHub Release on tag --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80d2524..b151ba5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,3 +62,18 @@ jobs: - run: npm install - run: npm run build - run: npm publish --access public + + # Publishing the package and announcing it are separate concerns: this job is + # kept apart from `publish` so the credential-bearing job keeps `contents: read`. + release: + needs: publish + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: GitHub Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + # A SemVer pre-release suffix is the only place a hyphen appears in the tag. + prerelease: ${{ contains(github.ref_name, '-') }}