Skip to content

Commit bd573cc

Browse files
committed
ci: Update publish script and trigger when release created
1 parent 5ea01bb commit bd573cc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: Publish CI
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
paths:
8-
- package.json
4+
release:
5+
types: [published]
96

107
jobs:
11-
npm-publish:
8+
publish:
129
runs-on: ubuntu-latest
1310
steps:
1411
- name: Begin CI...
@@ -18,6 +15,7 @@ jobs:
1815
uses: actions/setup-node@v1
1916
with:
2017
node-version: 12
18+
registry-url: 'https://registry.npmjs.org'
2119

2220
- name: Install dependencies
2321
run: npm ci
@@ -39,4 +37,4 @@ jobs:
3937
- name: Publish
4038
run: npm publish
4139
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)