Skip to content

Commit

Permalink
ci: support corepack in restore-node
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 22, 2024
1 parent f5ce897 commit 7e27202
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/restore-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ runs:
shell: bash
run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/

# Before setup-node because that action runs `yarn cache dir`. See https://github.com/actions/setup-node/issues/480#issuecomment-1915448139
- run: corepack enable
shell: bash

- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
Expand All @@ -122,9 +126,6 @@ runs:
- uses: kenchan0130/actions-system-info@master
id: system-info

- run: corepack enable
shell: bash

- name: restore built files
id: built
uses: actions/cache@v4
Expand Down

0 comments on commit 7e27202

Please sign in to comment.