Skip to content

Commit

Permalink
Get yarn cache path in the workflows (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet authored Jan 30, 2024
1 parent a6c50a4 commit cd4b841
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ jobs:
node-version: '18'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cache
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Cache Docker images
uses: ScribeMD/[email protected]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ha-beta-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
with:
node-version: '18'
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cache
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Cache Docker images
uses: ScribeMD/[email protected]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
with:
node-version: '18'
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cache
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Cache Docker images
uses: ScribeMD/[email protected]
Expand Down

0 comments on commit cd4b841

Please sign in to comment.