-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.11 KB
/
build.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
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
# This step uses the actions/checkout action to download a copy of your repository on the runner.
- name: Checkout repo
uses: actions/checkout@v4
# This step uses the pnpm/action-setup action to set up pnpm on the runner.
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
# This step uses the actions/setup-node action to set up a Node.js environment on the runner.
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
# This step runs the install script for the selected node package manager.
- name: Install dependencies
run: pnpm install
# This step runs the build script if there is one specified under the scripts key in your package.json file.
- name: Build
run: pnpm build