Skip to content

Commit

Permalink
make npm publish occur on tag push rather than release
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Blackburn committed May 17, 2024
1 parent e23f3a4 commit 75132e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Package and Publish

on:
release:
types: [created]
push:
tags:
- "*"

jobs:
publish-npm:
Expand All @@ -11,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish
Expand Down

0 comments on commit 75132e6

Please sign in to comment.