Skip to content

Commit

Permalink
chore: Upgrade workflow to pnpm 9
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Aug 24, 2024
1 parent 7a8ffec commit 3de5147
Show file tree
Hide file tree
Showing 3 changed files with 3,301 additions and 2,691 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v3
with:
version: 8
version: 9
run_install: false

- name: Get pnpm store directory
id: pnpm-store
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- name: Use pnpm store
uses: actions/cache@v3
uses: actions/cache@v4
id: pnpm-cache
with:
path: ${{ steps.pnpm-store.outputs.pnpm_cache_dir }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ jobs:
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v3
with:
version: 8
version: 9
run_install: false

- name: Get pnpm store directory
id: pnpm-store
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- name: Use pnpm store
uses: actions/cache@v3
uses: actions/cache@v4
id: pnpm-cache
with:
path: ${{ steps.pnpm-store.outputs.pnpm_cache_dir }}
Expand Down
Loading

0 comments on commit 3de5147

Please sign in to comment.