diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c94c819..a0243e6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,12 +36,26 @@ jobs: uses: actions/setup-node@v4 with: node-version: lts/* - cache: 'pnpm' # Set this to npm, yarn or pnpm. + - uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: - # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: Rust cache @@ -49,6 +63,9 @@ jobs: with: workspaces: './src-tauri -> target' + - name: install frontend dependencies + run: pnpm install + - name: install frontend dependencies # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. run: pnpm install # change this to npm or pnpm depending on which one you use.