Skip to content

Commit

Permalink
fix eslint cache for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ReDBrother committed Feb 12, 2024
1 parent a9df26d commit 579084c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ jobs:
ref: ${{ github.head_ref }}

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::${yarn cache dir}"
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache.outputs.dir }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install yarn dependencies
run: yarn install --froze-lockfile

Expand Down

0 comments on commit 579084c

Please sign in to comment.