Skip to content

Commit

Permalink
Use built in yarn caching in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Nov 14, 2022
1 parent 2ebcd96 commit 3bd0acd
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Setup yarn cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn
restore-keys: |
${{ runner.os }}-yarn
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'

- run: yarn install
- run: yarn verify
Expand Down

0 comments on commit 3bd0acd

Please sign in to comment.