We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3df88c4 commit 3c41b91Copy full SHA for 3c41b91
.github/workflows/npm-publish.yml
@@ -1,10 +1,13 @@
1
name: Publish to NPM
2
on:
3
release:
4
- types: [published]
+ # when created or published
5
+ types: [created, published]
6
jobs:
7
build:
8
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')
11
steps:
12
- name: Checkout
13
uses: actions/checkout@v4
0 commit comments