mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ci: parallel operations
This commit is contained in:
1 parent
75366c2518
commit
4520f9be4a
1 file changed
+10
-13
+10
-13
@@ -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
|
||||
|
||||
Reference in new issue
Block a user