Skip to content

Commit 33aa64c

Browse files
committed
update workflow to run on new release
1 parent cc1074d commit 33aa64c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: 'publish'
1+
name: Publish to NPM
22

33
on:
4-
push:
5-
branches: [master]
4+
release:
5+
types: [created]
66

77
jobs:
88
release:
9-
name: 🚀 publish
9+
name: 🚀 Publish
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: 📚 checkout
12+
- name: 📚 Checkout
1313
uses: actions/checkout@v3
1414
- name: 🟢 node
1515
uses: actions/setup-node@v2
1616
with:
1717
node-version: 16
1818
registry-url: https://registry.npmjs.org
19-
- name: 🍳 prepare
19+
- name: 🍳 Prepare
2020
run: |
2121
npm install
2222
npm run build
23-
- name: 🚚 publish
23+
- name: 🚚 Publish
2424
run: npm publish
2525
env:
2626
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)