Skip to content

Commit d51e722

Browse files
committed
chore: use pnpm in ci and cd
1 parent 7610e0e commit d51e722

4 files changed

Lines changed: 39 additions & 56 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "bun"
3+
- package-ecosystem: "npm"
44
directory: "/frontend"
55
groups:
66
minor-patch:

.github/workflows/ci.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717

18-
- name: Setup bun
19-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
2020

2121
- name: Setup go
2222
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
@@ -27,27 +27,22 @@ jobs:
2727
run: go mod download
2828

2929
- name: Install frontend dependencies
30-
run: |
31-
cd frontend
32-
bun install --frozen-lockfile
30+
working-directory: ./frontend
31+
run: pnpm ci
3332

3433
- name: Set version
35-
run: |
36-
echo testing > internal/assets/version
34+
run: echo testing > internal/assets/version
3735

3836
- name: Lint frontend
39-
run: |
40-
cd frontend
41-
bun run lint
37+
working-directory: ./frontend
38+
run: pnpm run lint
4239

4340
- name: Build frontend
44-
run: |
45-
cd frontend
46-
bun run build
41+
working-directory: ./frontend
42+
run: pnpm run build
4743

4844
- name: Copy frontend
49-
run: |
50-
cp -r frontend/dist internal/assets/dist
45+
run: cp -r frontend/dist internal/assets/dist
5146

5247
- name: Run tests
5348
run: go test -coverprofile=coverage.txt -v ./...

.github/workflows/nightly.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,24 @@ jobs:
5959
with:
6060
ref: nightly
6161

62-
- name: Install bun
63-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
62+
- name: Setup pnpm
63+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
6464

6565
- name: Install go
6666
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
6767
with:
6868
go-version: "^1.26.0"
6969

7070
- name: Install frontend dependencies
71-
run: |
72-
cd frontend
73-
bun install --frozen-lockfile
71+
working-directory: ./frontend
72+
run: pnpm ci
7473

7574
- name: Install backend dependencies
76-
run: |
77-
go mod download
75+
run: go mod download
7876

7977
- name: Build frontend
80-
run: |
81-
cd frontend
82-
bun run build
78+
working-directory: ./frontend
79+
run: pnpm run build
8380

8481
- name: Build
8582
run: |
@@ -105,27 +102,24 @@ jobs:
105102
with:
106103
ref: nightly
107104

108-
- name: Install bun
109-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
105+
- name: Setup pnpm
106+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
110107

111108
- name: Install go
112109
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
113110
with:
114111
go-version: "^1.26.0"
115112

116113
- name: Install frontend dependencies
117-
run: |
118-
cd frontend
119-
bun install --frozen-lockfile
114+
working-directory: ./frontend
115+
run: pnpm ci
120116

121117
- name: Install backend dependencies
122-
run: |
123-
go mod download
118+
run: go mod download
124119

125120
- name: Build frontend
126-
run: |
127-
cd frontend
128-
bun run build
121+
working-directory: ./frontend
122+
run: pnpm run build
129123

130124
- name: Build
131125
run: |

.github/workflows/release.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,24 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3737

38-
- name: Install bun
39-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
38+
- name: Setup pnpm
39+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
4040

4141
- name: Install go
4242
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
4343
with:
4444
go-version: "^1.26.0"
4545

4646
- name: Install frontend dependencies
47-
run: |
48-
cd frontend
49-
bun install --frozen-lockfile
47+
working-directory: ./frontend
48+
run: pnpm ci
5049

5150
- name: Install backend dependencies
52-
run: |
53-
go mod download
51+
run: go mod download
5452

5553
- name: Build frontend
56-
run: |
57-
cd frontend
58-
bun run build
54+
working-directory: ./frontend
55+
run: pnpm run build
5956

6057
- name: Build
6158
run: |
@@ -78,27 +75,24 @@ jobs:
7875
- name: Checkout
7976
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8077

81-
- name: Install bun
82-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
78+
- name: Setup pnpm
79+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
8380

8481
- name: Install go
8582
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
8683
with:
8784
go-version: "^1.26.0"
8885

8986
- name: Install frontend dependencies
90-
run: |
91-
cd frontend
92-
bun install --frozen-lockfile
87+
working-directory: ./frontend
88+
run: pnpm ci
9389

9490
- name: Install backend dependencies
95-
run: |
96-
go mod download
91+
run: go mod download
9792

9893
- name: Build frontend
99-
run: |
100-
cd frontend
101-
bun run build
94+
working-directory: ./frontend
95+
run: pnpm run build
10296

10397
- name: Build
10498
run: |

0 commit comments

Comments
 (0)