chore: update workflow #3076
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: | |
| push: | |
| branches: | |
| - main | |
| # PR CI handled by autofix.yml | |
| # pull_request: | |
| # branches: | |
| # - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - run: npm install -g corepack@latest | |
| - run: corepack enable | |
| - run: pnpm install | |
| - run: pnpm build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: packages/*/dist | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - run: npm install -g corepack@latest | |
| - run: corepack enable | |
| - run: pnpm install | |
| - run: pnpm lint | |
| typecheck: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - run: npm install -g corepack@latest | |
| - run: corepack enable | |
| - run: pnpm install | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: packages | |
| - run: pnpm typecheck | |
| release-nightly: | |
| needs: | |
| - lint | |
| - typecheck | |
| if: github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip-release]') | |
| permissions: | |
| id-token: write | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - run: npm install -g corepack@latest | |
| - run: corepack enable | |
| - run: pnpm install | |
| - name: Release Nightly | |
| run: ./scripts/release-nightly.sh |