From 67ffb1e776c0a25686145affa37e2589beeda2f5 Mon Sep 17 00:00:00 2001 From: Andrejs Date: Wed, 27 Nov 2024 18:31:02 +0200 Subject: [PATCH] chore(tauri-app): consider to use yarn.lock when build on pipeline --- .github/workflows/build_tauri_app.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_tauri_app.yml b/.github/workflows/build_tauri_app.yml index 67f43f2f4..f1a1daa13 100644 --- a/.github/workflows/build_tauri_app.yml +++ b/.github/workflows/build_tauri_app.yml @@ -41,6 +41,16 @@ jobs: node-version: 18 cache: 'yarn' + - name: cache node modules + uses: actions/cache@v3 + with: + path: | + **/node_modules + ~/.yarn/cache + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- + - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: @@ -52,8 +62,8 @@ jobs: workspaces: './src-tauri -> target' - name: install deps - run: yarn add -D @tauri-apps/cli && yarn install - + run: yarn install + - name: install frontend dependencies run: yarn tauri build ${{ matrix.settings.args }} - uses: tauri-apps/tauri-action@v0