This commit is contained in:
jinmao88 2023-08-10 11:00:49 +08:00
parent 30ccbfa695
commit e6c820792a

View File

@ -78,19 +78,19 @@ jobs:
- name: use Node.js 16 - name: use Node.js 16
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '16.x' node-version: '20.x'
- name: Get yarn cache directory path # - name: Get yarn cache directory path
id: yarn-cache-dir-path # id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT # run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
#
- name: Cache dependencies # - name: Cache dependencies
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} # path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: | # restore-keys: |
${{ runner.os }}-yarn- # ${{ runner.os }}-yarn-
- name: Set SSH Environment - name: Set SSH Environment
env: env: