Repository navigation
Refactor code structure for improved readability and maintainability #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| # Guard the committed versions.generated.ts BEFORE `pnpm build` runs — the cli's | |
| # build script is `gen:versions && tsc` (WRITE mode), which would regenerate the | |
| # file in the runner's tree and mask a stale commit. Must stay above `pnpm build`. | |
| - run: pnpm --filter @ogs-tech/create-press gen:versions --check | |
| - run: pnpm build | |
| - run: pnpm -r --if-present typecheck | |
| - run: pnpm -r test | |
| - run: pnpm pack:check |