-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.03 KB
/
ci.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
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Test
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
env:
CI: true
run: npm run test
- name: Report
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
env:
CI: true
COVERALLS_GIT_BRANCH: ${{ github.ref }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: npm run test-ci
- name: Build
run: npm run build
- name: Deploy
if: github.ref == 'refs/heads/master' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release