Skip to content

Commit

Permalink
chore: 修正工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
Dedicatus546 committed Nov 2, 2024
1 parent f760325 commit 9f84e8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:

- name: Enable Corepack
run: corepack enable

- name: Install pnpm
run: corepack prepare pnpm@latest --activate

- name: Cache Linux pnpm
if: matrix.os == 'ubuntu-latest'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,20 @@ jobs:
- name: Enable Corepack
run: corepack enable

- name: Cache pnpm
- name: Cache Linux pnpm
if: matrix.os == 'ubuntu-latest'
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
pnpm-${{ runner.os }}-
- name: Cache Windows pnpm
if: matrix.os == 'windows-latest'
uses: actions/cache@v4
with:
path: ~/.pnpm-store
path: D:\.pnpm-store
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
pnpm-${{ runner.os }}-
Expand Down

0 comments on commit 9f84e8b

Please sign in to comment.