-
Notifications
You must be signed in to change notification settings - Fork 63
46 lines (43 loc) · 1018 Bytes
/
main.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
43
44
45
46
name: CI
on: [pull_request]
jobs:
build:
name: Build & Test
runs-on: ubuntu-20.04
timeout-minutes: 25
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: 20.10.0
- name: Install Dependencies
run: |
npm install
- name: Test
run: |
npm run lint
npm test
- name: Build
run: |
npm run build:ci
- uses: actions/upload-artifact@master
with:
name: build-artifact
path: dist
publish:
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: build-artifact
path: dist
- uses: bvkimball/[email protected]
- env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
run: sh snapshot-publish