Skip to content

Commit

Permalink
Revert to old style of caching in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
surilindur committed Mar 25, 2024
1 parent bedcb24 commit 7a7fe6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ jobs:
with:
node-version: latest
- uses: actions/cache@v4
id: cache-yarn
with:
path: '**/.yarn'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: corepack enable
- run: yarn install --immutable
if: steps.cache-yarn.outputs.cache-hit != 'true'
- run: yarn run lint

test:
Expand All @@ -45,13 +43,11 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: git config --global core.autocrlf input
- uses: actions/cache@v4
id: cache-yarn
with:
path: '**/.yarn'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: corepack enable
- run: yarn install --immutable
if: steps.cache-yarn.outputs.cache-hit != 'true'
- run: yarn run build
- run: yarn run test
- uses: coverallsapp/github-action@v2
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ jobs:
node-version: 20.x
registry-url: https://registry.npmjs.org
- uses: actions/cache@v4
id: cache-yarn
with:
path: '**/.yarn'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: corepack enable
- run: yarn install --immutable
if: steps.cache-yarn.outputs.cache-hit != 'true'
- run: yarn run lint
- run: yarn run build
- run: yarn run test
Expand Down

0 comments on commit 7a7fe6f

Please sign in to comment.