-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 963 Bytes
/
node.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: node
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: node-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
- name: Install and Test
run: |
npm install
npm run gha
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
- name: Install and Build
run: |
npm install
npm run gha
npm install --production
ls node_modules
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: |
lib
node_modules