From 9b67f6bd18f13fdd8df20c7b339965c37bc32767 Mon Sep 17 00:00:00 2001 From: Owen McGirr Date: Tue, 10 Mar 2026 15:26:50 +0000 Subject: [PATCH] ci: trigger publish on tag push, auto-create GitHub release with notes --- .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: