Skip to content

Commit

Permalink
setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Dec 16, 2024
1 parent cb69de1 commit 05b28a0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/yarn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,10 @@ runs:
- name: Enable Corepack
shell: bash
run: corepack enable
- name: Get yarn cache directory path
shell: bash
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache
- uses: actions/setup-node@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '22.11.0' # jod
cache: 'yarn'

- uses: actions/cache@v4
id: nextjs-cypress-cache
Expand Down

0 comments on commit 05b28a0

Please sign in to comment.