-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 942 Bytes
/
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
name: Deployment Pipeline
on:
push:
branches: [master]
pull_request:
branches: [master]
types: [opened, synchronize]
jobs:
avoid_reduncy:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Redundant Builds
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install --no-audit --no-fund --no-optional
- name: Build
run: npm run build
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist