diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59dc185a5..89dd86177 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/package.json b/package.json index 6d19e05fc..4a6b404d7 100644 --- a/package.json +++ b/package.json @@ -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",