Skip to content

Commit

Permalink
Automatically generate a GitHub release from a tag if the npm publish…
Browse files Browse the repository at this point in the history
… was successful
  • Loading branch information
assafmo committed Feb 1, 2024
1 parent b53e78f commit 62cead7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- "**"
jobs:
publish:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,3 +21,11 @@ jobs:
- run: pnpm install
- run: pnpm build
- run: pnpm run publish

github-release:
needs: [npm-publish]
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true

0 comments on commit 62cead7

Please sign in to comment.