Skip to content

Commit

Permalink
chore: Restore dependency caching on CI (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiPl01 authored Oct 28, 2023
1 parent afc9caa commit e4bf4c6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,20 @@ jobs:
with:
node-version: 18

- name: 🔄 Generate Cache Key
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

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

- name: 🎉 Release
run: yarn semantic-release
Expand Down

0 comments on commit e4bf4c6

Please sign in to comment.