Skip to content

Commit 088ff88

Browse files
committed
chore: switch to pnpm
1 parent 84e94c0 commit 088ff88

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/release.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
2019
- name: Set up Node
2120
uses: actions/setup-node@v4
2221
with:
23-
node-version: 22
22+
node-version: 23
23+
- name: Set up pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 10
2427
- name: Build FE
2528
run: |
2629
# Extract version from git tag (remove 'v' prefix).

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# build frontend
22
FROM node:23 as fe
33
WORKDIR /src
4+
RUN npm i -g pnpm
45
COPY .git .git/
56
COPY frontend ./frontend
67
COPY scripts.sh .

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Download from [Releases](https://github.com/0x2E/fusion/releases).
5555

5656
### 3. Build from source
5757

58-
1. Prepare dependencies: Go 1.23+, Node.js 23+.
58+
1. Prepare environment: Go 1.23+, Node.js 23+ (and pnpm).
5959
2. Check `scripts.sh` for more details.
6060

6161
For example:

scripts.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ build_frontend() {
3030
echo "Using fusion version string: ${version}"
3131

3232
cd ./frontend
33-
npm i
34-
VITE_FUSION_VERSION="$version" npm run build
33+
pnpm i
34+
VITE_FUSION_VERSION="$version" pnpm run build
3535
cd $root
3636
}
3737

0 commit comments

Comments
 (0)