forked from Ironclad/rivet
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 998 Bytes
/
Copy pathbuild.yml
File metadata and controls
52 lines (39 loc) · 998 Bytes
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
47
48
49
50
51
52
name: Build
on:
push:
branches:
- '**'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Enable corepack
run: corepack enable
- name: Use Yarn 4.8.1
run: corepack prepare yarn@4.8.1 --activate
- uses: actions/setup-node@v3
with:
node-version: '20.4.x'
cache: 'yarn'
- name: Clear Yarn cache
run: yarn cache clean
- name: Clean install with Yarn PnP
run: |
rm -rf .yarn/cache .yarn/install-state.gz
yarn install --immutable
- name: Unplug tsx for ESM compatibility
run: yarn unplug tsx
- name: Build
run: yarn build
env:
NODE_OPTIONS: --max_old_space_size=6000
- name: Test
run: yarn test
- name: Lint
run: yarn lint
- name: Prettier
run: yarn prettier --check