-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get yarn cache path in the workflows (#52)
- Loading branch information
1 parent
a6c50a4
commit cd4b841
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|