ci(actions): update checkout and setup-node

This commit is contained in:
Bobby 2022-03-09 22:07:43 +07:00
parent aaeb66efcd
commit 4b9a27b4a0
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -15,24 +15,13 @@ jobs:
name: Rebuild client assets and bump v1 version string
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'
- name: Install dependencies
run: yarn install