From f171332012d1bee9e94b9d0d9910bc9597a9403d Mon Sep 17 00:00:00 2001 From: enaboapps <60785457+enaboapps@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:27:12 +0000 Subject: [PATCH] ci: trigger publish on tag push, auto-create GitHub release with notes (#76) Co-authored-by: Owen McGirr --- .github/workflows/publish.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d741ff6..7dec2fd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,9 @@ name: Publish to npm on: - release: - types: [published] + push: + tags: + - 'v*.*.*' jobs: build: @@ -38,9 +39,22 @@ jobs: name: dist path: dist/ - publish: + release: needs: build runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + + publish: + needs: release + runs-on: ubuntu-latest permissions: id-token: write steps: