From 531c4e4fc4c9942087cdce8e76aa1154d55f3a02 Mon Sep 17 00:00:00 2001 From: Atila Fassina Date: Sun, 23 Nov 2025 16:31:05 +0100 Subject: [PATCH 1/3] add check for the types in the `dist` for release --- .github/workflows/dist-typecheck.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/dist-typecheck.yml diff --git a/.github/workflows/dist-typecheck.yml b/.github/workflows/dist-typecheck.yml new file mode 100644 index 000000000..2d5ae568e --- /dev/null +++ b/.github/workflows/dist-typecheck.yml @@ -0,0 +1,38 @@ +name: Type Check Distribution + +on: + pull_request: ~ + push: + branches: + - main + +jobs: + typecheck-dist: + name: Check ${{ matrix.package }} distributed types + runs-on: ubuntu-latest + strategy: + matrix: + ## to add other packages from the monorepo, add them to the matrix + package: [start] + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v3 + + - name: Use Node.js from nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + registry-url: "https://registry.npmjs.org" + cache: "pnpm" + + - name: Install Dependencies + run: pnpm i --frozen-lockfile + + - name: Build ${{ matrix.package }} package and dependencies + # build the package and all its dependencies + run: pnpm --filter ${{ matrix.package }}... build + + - name: Check types with @arethetypeswrong/cli + run: pnpx @arethetypeswrong/cli --pack packages/${{ matrix.package }} --profile esm-only From 5d58a4c9facc00703c7a4b0393434baafdfe6d98 Mon Sep 17 00:00:00 2001 From: Atila Fassina Date: Sun, 23 Nov 2025 18:18:27 +0100 Subject: [PATCH 2/3] Update dist-typecheck.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/dist-typecheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dist-typecheck.yml b/.github/workflows/dist-typecheck.yml index 2d5ae568e..7907fde7f 100644 --- a/.github/workflows/dist-typecheck.yml +++ b/.github/workflows/dist-typecheck.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - - uses: pnpm/action-setup@v3 + - uses: pnpm/action-setup@v4 - name: Use Node.js from nvmrc uses: actions/setup-node@v4 From ec65422702adf7d5af4aa24ccab2a795bed3512b Mon Sep 17 00:00:00 2001 From: Atila Fassina Date: Sun, 23 Nov 2025 18:18:33 +0100 Subject: [PATCH 3/3] Update dist-typecheck.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/dist-typecheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dist-typecheck.yml b/.github/workflows/dist-typecheck.yml index 7907fde7f..f491235f0 100644 --- a/.github/workflows/dist-typecheck.yml +++ b/.github/workflows/dist-typecheck.yml @@ -16,7 +16,7 @@ jobs: package: [start] steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: pnpm/action-setup@v4