-
Notifications
You must be signed in to change notification settings - Fork 31
42 lines (39 loc) · 956 Bytes
/
npm-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Publish on NPM
on:
push:
paths:
- '.github/workflows/npm-publish.yml'
- 'package.json'
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 15
- name: Installing NPM deps
run: npm install
- name: Testing
run: npm run test
publish-npm:
needs: test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 15
registry-url: https://registry.npmjs.org/
- name: Installing NPM deps
run: npm install
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- name: Build modules
run: npm run build
- name: Publishing on NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}