mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ci: add git config
This commit is contained in:
1 parent
86a6f6ba0b
commit
1d56353ab6
1 file changed
+8
-5
@@ -20,8 +20,13 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
- name: Create .npmrc
|
- name: Config
|
||||||
run: 'echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc'
|
run: |
|
||||||
|
echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
|
||||||
|
git config --global user.name undefined
|
||||||
|
git config --global user.email i@undefined.moe
|
||||||
|
- name: Cache
|
||||||
|
uses: c-hive/gha-yarn-cache@v1
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -29,9 +34,7 @@ jobs:
|
|||||||
yarn build
|
yarn build
|
||||||
yarn build:ui:production
|
yarn build:ui:production
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: yarn lint:ci
|
||||||
yarn lint:ci
|
|
||||||
yarn lint:ui:ci
|
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: yarn jest --runInBand
|
run: yarn jest --runInBand
|
||||||
- name: Report Coverage
|
- name: Report Coverage
|
||||||
|
|||||||
Reference in new issue
Block a user