Update dependencies #2883
Workflow file for this run
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: TypeScript TSC Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
tsc: | |
name: TypeScript Version Check | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'workflow_dispatch' || github.head_ref == 'changeset-release/main' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ['next', 'beta', 'latest', '5.6.2', '5.5.4', '5.4.5', '5.3.3', '5.2.2', '5.1.6', '5.0.4'] | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: β Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: π₯ Install project dependencies | |
run: pnpm install --frozen-lockfile | |
- name: π¦ Install TypeScript ${{ matrix.target }} | |
run: pnpm add --workspace-root typescript@${{ matrix.target }} | |
- name: π·π»ββοΈ Compile | |
run: pnpm build | |
- name: π Type-check code | |
run: pnpm tsc |