Skip to content

Commit 1440f3e

Browse files
committed
CI: Add build workflow
Let's test if we can actually build the artifact
1 parent e63e21e commit 1440f3e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
Build:
11+
runs-on: ubuntu-24.04
12+
env:
13+
NODE_ENV: production
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Restore node modules cache
17+
uses: actions/cache@v4
18+
with:
19+
path: node_modules
20+
key: ${{ runner.os }}-pnpm-${{ hashFiles('./package.json') }}
21+
restore-keys: |
22+
${{ runner.os }}-pnpm-
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
- name: Install dependencies
26+
run: pnpm install
27+
- name: Build package
28+
run: pnpm run build

0 commit comments

Comments
 (0)