Skip to content

Commit 9397cf3

Browse files
committed
setup pnpm
Signed-off-by: Teo Koon Peng <[email protected]>
1 parent 6c9942a commit 9397cf3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/ci_linux.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
- name: Setup rust
3232
run: rustup default ${{ matrix.rust-version }}
3333

34+
- name: Setup pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: latest
38+
39+
- name: Setup nodejs
40+
run: pnpm env use --global lts
41+
3442
- name: Build default features
3543
run: cargo build --workspace
3644
- name: Test default features

diagram-editor/build.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ mod frontend {
1919
println!("cargo:rerun-if-changed=rsbuild.config.ts");
2020
println!("cargo:rerun-if-changed=frontend");
2121

22+
let status = Command::new("pnpm")
23+
.arg("install")
24+
.arg("--frozen-lockfile")
25+
.status()
26+
.expect("Failed to execute pnpm install");
27+
28+
if !status.success() {
29+
panic!("pnpm install failed with status: {:?}", status);
30+
}
31+
2232
let status = Command::new("pnpm")
2333
.arg("build")
2434
.status()

0 commit comments

Comments
 (0)