File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 with :
4545 fetch-depth : 0
4646 persist-credentials : false
47+
48+ - name : Use Node.js ${{ matrix.node-version }}
49+ uses : actions/setup-node@v1
50+ with :
51+ node-version : ${{ matrix.node-version }}
52+
53+ - name : Get yarn cache directory path
54+ id : yarn-cache-dir-path
55+ run : echo "::set-output name=dir::$(yarn cache dir)"
56+ - uses : actions/cache@v1
57+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
58+ with :
59+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
60+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
61+ restore-keys : |
62+ ${{ runner.os }}-yarn-
63+
64+ - name : install packages using yarn.lock
65+ run : |
66+ echo "{{secrets.WF_NPM_USER}}:registry=https://npm.pkg.github.com" >> .npmrc
67+ echo "//npm.pkg.github.com/:_authToken=${{ secretes.WF_NPM_TOKEN }}" >> .npmrc
68+ yarn --frozen-lockfile
You can’t perform that action at this time.
0 commit comments