ci: add pkg pr new #2732
This file contains 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: QA | |
on: | |
pull_request: | |
branches: | |
- canary | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/common-actions/install | |
- name: Build packages | |
run: pnpm build | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/common-actions/install | |
- name: Run tests | |
run: pnpm test | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/common-actions/install | |
- name: Run ESLint | |
run: pnpm lint | |
types: | |
name: TypeScript | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/common-actions/install | |
- name: Run typecheck | |
run: pnpm typecheck | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/common-actions/install | |
- name: Run prettier | |
run: pnpm format:check | |
continuous-release: | |
name: Continuous Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/common-actions/install | |
- name: Build packages | |
run: pnpm build | |
- name: Release | |
run: pnpx pkg-pr-new publish --compact --pnpm './packages/**/*' |