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 382c0e8 commit 3e004b5
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 3e004b5

Please sign in to comment.