chore: use latest node on ci workflow when possible (#12049)

This commit is contained in:
Huáng Jùnliàng
2020-09-10 17:33:19 -04:00
committed by GitHub
parent 70cf2d704a
commit c8f0b6dc1e

View File

@@ -11,6 +11,8 @@ jobs:
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "*"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
@@ -38,6 +40,8 @@ jobs:
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "*"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
@@ -62,6 +66,8 @@ jobs:
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "*"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
@@ -96,7 +102,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta # Build Babel on latest node versions
uses: actions/setup-node@v2-beta
with:
node-version: "*" # Build Babel on latest node versions
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"