-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 918 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
36
37
38
39
40
41
42
name: CI
on:
workflow_call
jobs:
Check:
runs-on: ubuntu-latest
steps:
- name: Download repository
uses: actions/checkout@v3
- name: PNPM Cache
uses: actions/cache@v3
with:
path: ~/.pnpm
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.json') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: latest
- name: Install libs
run: |
pnpm install --frozen-lockfile
- name: Build
run: |
pnpm run build