-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 711 Bytes
/
ci.yml
File metadata and controls
32 lines (26 loc) · 711 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
name: CI
on:
push:
branches: main
pull_request:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
id: pnpm
run: |
npm i pnpm@latest -g
sed -i '/^use-node-version/d' .npmrc
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm i -P
- run: pnpm build