Skip to content

Commit

Permalink
chore: update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglun committed Apr 15, 2024
1 parent c9e13ba commit eb184a9
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,27 @@ jobs:
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.


- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
- name: install frontend dependencies
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
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 dependencies
run: pnpm install

- uses: tauri-apps/tauri-action@v0
env:
Expand Down

0 comments on commit eb184a9

Please sign in to comment.