File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,21 +26,21 @@ jobs:
2626 registry-url : " https://registry.npmjs.org"
2727
2828 - name : Get cache directory
29- id : npm -cache-dir
29+ id : yarn -cache-dir
3030 run : |
31- echo "::set-output name=dir::$(npm config get cache)"
31+ echo "::set-output name=dir::$(yarn cache dir )"
3232
3333 - name : Restoring cache
3434 uses : actions/cache@v2
35- id : npm -cache # use this to check for `cache-hit` ==> if: steps.npm -cache.outputs.cache-hit != 'true'
35+ id : yarn -cache # use this to check for `cache-hit` ==> if: steps.yarn -cache.outputs.cache-hit != 'true'
3636 with :
37- path : ${{ steps.npm -cache-dir.outputs.dir }}
37+ path : ${{ steps.yarn -cache-dir.outputs.dir }}
3838 key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
3939 restore-keys : |
4040 ${{ runner.os }}-yarn-
4141
4242 - name : Install Packages
43- run : yarn install --frozen-lockfile --cache-folder .npm -- prefer-offline
43+ run : yarn install --frozen-lockfile --prefer-offline
4444
4545 - name : Build
4646 run : yarn prepack
You can’t perform that action at this time.
0 commit comments