Skip to content

Commit

Permalink
ci: use corepack instead of pnpm/action-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrykingxyz committed Jan 3, 2025
1 parent d7d824b commit 8672180
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/actions/pnpm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ runs:
with:
node-version: ${{ inputs.node-version }}

# https://pnpm.io/continuous-integration#github-actions
# Uses `packageManagement` field from package.json
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
dest: ${{ runner.tool_cache }}/pnpm
# Use `@pnpm/exe` for Node 16
standalone: ${{ inputs.node-version == '16' }}
- name: Enable corepack
shell: bash
run: |
corepack enable
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ jobs:
with:
node-version: 20

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Run e2e
uses: ./.github/actions/docker-run
with:
Expand Down

0 comments on commit 8672180

Please sign in to comment.