From 4520f9be4a9474ed400ee1d20afdde2544caee3d Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 28 Mar 2022 04:48:09 +0800 Subject: [PATCH] ci: parallel operations --- .github/workflows/build.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 189463d1..8da55d17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,25 +29,22 @@ jobs: - uses: actions/cache@v3 id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} + path: | + ${{ steps.yarn-cache-dir-path.outputs.dir }} + yarn.lock + **/tsconfig.tsbuildinfo + key: yarn-${{ hashFiles('**/package.json') }} restore-keys: | - ${{ runner.os }}-yarn- - - name: Config + yarn- + - name: Config And Install run: | [[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml git config --global user.name undefined git config --global user.email i@undefined.moe - - name: Install - run: yarn - - name: Build + yarn + - name: Build And Lint run: | - yarn build - yarn build:ui:production - - name: Lint - run: | - yarn lint:ci - yarn lint:ui:ci + parallel --tty -j+0 ::: lint:ci lint:ui:ci build build:ui:production - name: Publish if: ${{ github.event_name == 'push' }} run: node build/publish.js