Skip to content

Commit 3c41b91

Browse files
committed
fix: run publish on created non-draft releases
1 parent 3df88c4 commit 3c41b91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Publish to NPM
22
on:
33
release:
4-
types: [published]
4+
# when created or published
5+
types: [created, published]
56
jobs:
67
build:
78
runs-on: ubuntu-latest
9+
# Only run for non-draft versions
10+
if: github.event.release.draft == false && startsWith(github.event.release.tag_name, 'v')
811
steps:
912
- name: Checkout
1013
uses: actions/checkout@v4

0 commit comments

Comments
 (0)