blob: 199d121a421436366e3cb74b5e106845f58961a7 (
plain) (
blame)
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
|
name: Build and test
on:
push:
branches: [master]
jobs:
buildAndTest:
name: Build and test (Node.js v${{ matrix.node-version }})
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install install dependencies
run: npm ci
- name: test
run: npm test
- name: build
run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET_TOKEN }}
|