-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 990 Bytes
/
ci.yml
File metadata and controls
44 lines (38 loc) · 990 Bytes
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
43
44
name: ci
on:
schedule:
- cron: 0 9 * * *
push:
branches:
- master
tags:
- "v1.*"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "14.x"
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm install
- run: make test
env:
PASSBASE_SECRET_API_KEY: ${{ secrets.PASSBASE_SECRET_API_KEY }}
- run: npm run build
- name: NPM Publish
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true