Skip to content

Commit 162ebe1

Browse files
authored
ci: build workflow (#1681)
1 parent aba3ecf commit 162ebe1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Project
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup Node and Corepack
18+
uses: actions/[email protected]
19+
with:
20+
node-version: 20.x
21+
22+
- name: Enable Corepack and Set Yarn Version
23+
run: |
24+
corepack enable
25+
corepack prepare [email protected] --activate
26+
27+
- name: Restore Yarn Cache
28+
uses: actions/cache@v3
29+
id: yarn-cache
30+
with:
31+
path: .yarn/cache
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-yarn-
35+
36+
- name: Install dependencies
37+
run: yarn install --immutable
38+
39+
- name: Build project
40+
run: yarn build

0 commit comments

Comments
 (0)