From 8c56dbc459ced16bf9e6e4305a690a6483814bd4 Mon Sep 17 00:00:00 2001 From: shumengya Date: Wed, 27 May 2026 22:22:06 +0800 Subject: [PATCH] fix(ci): install npm deps before prepare-template script Co-authored-by: Cursor --- .github/workflows/build-app.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index a960d98..ad40ca3 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -36,12 +36,12 @@ jobs: node-version: lts/* cache: npm - - name: Prepare template - run: node .github/scripts/prepare-template.mjs - - name: Install dependencies run: npm ci + - name: Prepare template + run: node .github/scripts/prepare-template.mjs + - uses: dtolnay/rust-toolchain@stable - uses: swatinem/rust-cache@v2 @@ -75,6 +75,12 @@ jobs: node-version: lts/* cache: npm + - name: Install dependencies + run: npm ci + + - name: Prepare template + run: node .github/scripts/prepare-template.mjs + - uses: actions/setup-java@v4 with: distribution: temurin @@ -93,12 +99,6 @@ jobs: with: workspaces: template/src-tauri -> target - - name: Prepare template - run: node .github/scripts/prepare-template.mjs - - - name: Install dependencies - run: npm ci - - name: Initialize Android project working-directory: template run: npm run tauri android init