ci: parallel operations

pull/334/head
undefined 3 years ago
parent 75366c2518
commit 4520f9be4a

@ -29,25 +29,22 @@ jobs:
- uses: actions/cache@v3 - uses: actions/cache@v3
id: yarn-cache id: yarn-cache
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} ${{ steps.yarn-cache-dir-path.outputs.dir }}
yarn.lock
**/tsconfig.tsbuildinfo
key: yarn-${{ hashFiles('**/package.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- yarn-
- name: Config - name: Config And Install
run: | run: |
[[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml [[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml
git config --global user.name undefined git config --global user.name undefined
git config --global user.email i@undefined.moe git config --global user.email i@undefined.moe
- name: Install yarn
run: yarn - name: Build And Lint
- name: Build
run: | run: |
yarn build parallel --tty -j+0 ::: lint:ci lint:ui:ci build build:ui:production
yarn build:ui:production
- name: Lint
run: |
yarn lint:ci
yarn lint:ui:ci
- name: Publish - name: Publish
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
run: node build/publish.js run: node build/publish.js

Loading…
Cancel
Save