chore: update workflow

This commit is contained in:
Vben 2021-04-22 22:58:10 +08:00
parent c639e493a5
commit f0ae146ca0

View File

@ -25,17 +25,17 @@ jobs:
with: with:
node-version: '14.x' node-version: '14.x'
- name: Get yarn cache # - name: Get yarn cache
id: yarn-cache # id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)" # run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies # - name: Cache dependencies
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: ${{ steps.yarn-cache.outputs.dir }} # path: ${{ steps.yarn-cache.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: Build - name: Build
run: | run: |