-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.03 KB
/
build.yml
File metadata and controls
52 lines (42 loc) · 1.03 KB
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: Test Build
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
branch:
description: 'Branch to run the workflow on'
required: false
default: 'main'
type: string
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- name: Setup pnpm
uses: pnpm/action-setup@v4.1.0
with:
version: 10.16.1
- name: Ensure pnpm cache directory exists
run: mkdir -p ~/.pnpm-store
- name: Cache pnpm dependencies
uses: actions/cache@v5
with:
path: ~/.pnpm-store
key: pnpm-store-build
restore-keys: |
pnpm-store-build
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run Build
run: pnpm run build