Skip to content

Commit

Permalink
Test cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Jun 27, 2023
1 parent d000c5e commit 29577c3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
node-version: '18'
registry-url: "https://registry.npmjs.org"
- run: npm install --global yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Restore yarn cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- run: yarn install --immutable
- run: yarn build
- run: yarn bundle
Expand Down

0 comments on commit 29577c3

Please sign in to comment.