-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 1.04 KB
/
build-test.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
name: Build test pack
on:
push:
branches: [develop, release/*]
pull_request:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
- name: Install Dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Pack and upload Artifact
uses: actions/upload-artifact@v3
with:
name: crosssync-test-pack
path: dist/ # this will pack automatically, so no other packs needed
retention-days: 7