From ce0d2f08c54a9f0aae9d31bfa7333eea26ec12f3 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 19 Oct 2021 11:26:46 +0800 Subject: [PATCH] chore: change ci action name --- .github/workflows/ci.yaml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6d0dae29..479ec0a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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-