0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: add ci:* scripts (#870)

This commit is contained in:
Gao Sun 2022-05-18 10:58:01 +08:00 committed by GitHub
parent 664a2180a5
commit 646bd36758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -16,16 +16,16 @@ jobs:
uses: logto-io/actions-node-pnpm-run-steps@v1.2.1 uses: logto-io/actions-node-pnpm-run-steps@v1.2.1
- name: Build - name: Build
run: pnpm -- lerna run --stream build run: pnpm ci:build
- name: Lint - name: Lint
run: pnpm -- lerna run --parallel lint run: pnpm ci:lint
- name: Stylelint - name: Stylelint
run: pnpm -- lerna run --parallel stylelint run: pnpm ci:stylelint
- name: Test - name: Test
run: pnpm -- lerna run --parallel test:coverage run: pnpm ci:test
- name: Codecov - name: Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3

View file

@ -9,7 +9,11 @@
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi", "prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
"prepack": "lerna run --stream prepack", "prepack": "lerna run --stream prepack",
"dev": "lerna run --stream prepack && lerna --scope=@logto/{core,ui,console} exec -- pnpm dev", "dev": "lerna run --stream prepack && lerna --scope=@logto/{core,ui,console} exec -- pnpm dev",
"start": "cd packages/core && NODE_ENV=production node . --from-root" "start": "cd packages/core && NODE_ENV=production node . --from-root",
"ci:build": "lerna run --stream build",
"ci:lint": "lerna run --parallel lint",
"ci:stylelint": "lerna run --parallel stylelint",
"ci:test": "lerna run --parallel test:coverage"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^17.0.0", "@commitlint/cli": "^17.0.0",