Skip to content

Commit

Permalink
ci: use native cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Jul 8, 2024
1 parent 2d45696 commit 31ef0ec
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,16 @@ runs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- name: Enable corepack
shell: bash
run: corepack enable

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
shell: bash
run: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true'

- name: Show versions
shell: bash
run: node --version && yarn --version

0 comments on commit 31ef0ec

Please sign in to comment.