|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
name: "deploy nightly"
|
|
|
|
|
name: "CI"
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
@ -7,7 +7,7 @@ on:
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
deploy:
|
|
|
|
|
ci:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
@ -15,23 +15,17 @@ jobs:
|
|
|
|
|
steps:
|
|
|
|
|
- name: checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
- name: Get yarn cache directory path
|
|
|
|
|
id: yarn-cache-dir-path
|
|
|
|
|
run: |
|
|
|
|
|
echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
echo "::set-output name=version::$(yarn -v)"
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
|
with:
|
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
- name: cache
|
|
|
|
|
uses: actions/cache@v2
|
|
|
|
|
- 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: |
|
|
|
|
|
**/node_modules
|
|
|
|
|
**/.eslintcache
|
|
|
|
|
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
|
|
|
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|