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:
parent
664a2180a5
commit
646bd36758
2 changed files with 9 additions and 5 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -16,16 +16,16 @@ jobs:
|
|||
uses: logto-io/actions-node-pnpm-run-steps@v1.2.1
|
||||
|
||||
- name: Build
|
||||
run: pnpm -- lerna run --stream build
|
||||
run: pnpm ci:build
|
||||
|
||||
- name: Lint
|
||||
run: pnpm -- lerna run --parallel lint
|
||||
run: pnpm ci:lint
|
||||
|
||||
- name: Stylelint
|
||||
run: pnpm -- lerna run --parallel stylelint
|
||||
run: pnpm ci:stylelint
|
||||
|
||||
- name: Test
|
||||
run: pnpm -- lerna run --parallel test:coverage
|
||||
run: pnpm ci:test
|
||||
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
|
|
@ -9,7 +9,11 @@
|
|||
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
|
||||
"prepack": "lerna run --stream prepack",
|
||||
"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": {
|
||||
"@commitlint/cli": "^17.0.0",
|
||||
|
|
Loading…
Reference in a new issue