Skip to content

Commit 82b392f

Browse files
authored
Update build.yml
1 parent 57c2345 commit 82b392f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ jobs:
2020
uses: actions/setup-node@v2
2121
with:
2222
node-version: ${{ matrix.node-version }}
23-
- run: npm install
24-
- run: npm test
23+
registry-url: 'https://registry.npmjs.org'
24+
- name: Install dependencies
25+
run: npm install
26+
- name: Testing
27+
run: npm test
2528
- name: Before deploy
2629
run: npm run docs
30+
- name: Publish
31+
if: ${{ matrix.node-version == '12.16.3' }}
32+
run: npm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)