Skip to content

Commit a504b3b

Browse files
committed
setup ci
1 parent ce42096 commit a504b3b

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @zerosnacks

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: ci
2+
3+
permissions: {}
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- master
9+
paths-ignore:
10+
- "**.md"
11+
push:
12+
branches:
13+
- master
14+
paths-ignore:
15+
- "**.md"
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v5
29+
with:
30+
persist-credentials: false
31+
32+
- name: Set up Node
33+
uses: actions/setup-node@v6
34+
with:
35+
node-version-file: ".nvmrc"
36+
cache: "pnpm"
37+
38+
- name: Set up pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: latest
42+
run_install: false
43+
44+
- name: Install dependencies
45+
run: pnpm install --frozen-lockfile
46+
47+
- name: Build project
48+
run: pnpm run build
49+
50+
- name: Upload build artifacts
51+
uses: actions/upload-artifact@v5
52+
with:
53+
name: dist
54+
path: dist

0 commit comments

Comments
 (0)