From 8a8efd69adfcbc9f18864db78c052e167e0d1b46 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Fri, 29 May 2026 20:05:22 -0400 Subject: [PATCH] ci: corepack before setup-node, scope prettier to src/, emit d.mts --- .github/workflows/ci.yml | 16 ++++++++-------- package.json | 3 ++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a481d3..5739ea0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,14 +16,14 @@ jobs: node-version: [20, 22, 24] steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile @@ -42,14 +42,14 @@ jobs: contents: read steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: 24 cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm run typecheck @@ -59,12 +59,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: 24 cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm run lint - run: pnpm run format:check @@ -75,14 +75,14 @@ jobs: contents: read steps: - uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable - uses: actions/setup-node@v4 with: node-version: 24 cache: pnpm - - name: Enable corepack - run: corepack enable - run: pnpm install --frozen-lockfile - run: pnpm run build diff --git a/package.json b/package.json index 9e2557d..c89df18 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "format": "prettier --write src/", "format:check": "prettier --check src/", "prepublishOnly": "tsup", - "coverage": "c8 --reporter=lcov --reporter=text node --test" + "coverage": "c8 --reporter=lcov --reporter=text node --test", + "postbuild": "cp dist/index.d.ts dist/index.d.mts" }, "keywords": [ "solar",