mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
|
- 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
|
||||||
|
|||||||
Reference in new issue
Block a user