Release CodeTruss CLI v0.2.53 #121
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] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} · Node ${{ matrix.node }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node: ['20.9.0', '22', '24'] | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| package-manager-cache: false | |
| - name: Activate pinned pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.28.2 --activate | |
| - name: Install locked dependencies for Node 20.9 | |
| if: matrix.node == '20.9.0' | |
| run: pnpm install --frozen-lockfile --config.engine-strict=false | |
| - name: Install locked dependencies | |
| if: matrix.node != '20.9.0' | |
| run: pnpm install --frozen-lockfile | |
| - name: Typecheck | |
| if: matrix.node != '20.9.0' | |
| run: pnpm typecheck | |
| - name: Build deterministic release artifact | |
| run: pnpm release:artifact | |
| - name: Test | |
| if: matrix.node != '20.9.0' | |
| run: pnpm test | |
| - name: Test deterministic release integrity on Node 20.9 | |
| if: matrix.node == '20.9.0' | |
| run: | | |
| node packages/cli/scripts/test-deterministic-package.mjs | |
| node packages/cli/scripts/test-release-verifier.mjs | |
| - name: Verify and install distributable package | |
| run: | | |
| pnpm release:verify | |
| pnpm test:install |