From f9af2315135983f3a06487bb7f0459f4afc5d97a Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Fri, 19 Dec 2025 08:48:11 -0600 Subject: [PATCH 1/2] test: use reusable workflow with dry-run --- .github/workflows/release.yml | 39 ++++------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80c2d23..00a6253 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,42 +7,11 @@ on: release: types: [published] -defaults: - run: - shell: bash - jobs: - test: - name: Publish to NPM - runs-on: ubuntu-latest + publish: + uses: workos/workflows/.github/workflows/npm-release.yml@main permissions: contents: read id-token: write - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 10 - - uses: actions/setup-node@v4 - with: - node-version: 24 - registry-url: 'https://registry.npmjs.org' - cache: 'pnpm' - - - name: Install Dependencies - run: | - pnpm install - - - name: Build project - run: | - pnpm run build - - - name: Push Release - if: ${{ !github.event.release.prerelease }} - run: | - pnpm publish --tag latest --access=public --no-git-checks --provenance - - - name: Push Pre-Release - if: ${{ github.event.release.prerelease }} - run: | - pnpm publish --tag next --access=public --no-git-checks --provenance + with: + dry-run: true From b2cef708bec1e990b9743d117759d1b9000fad6a Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Fri, 19 Dec 2025 09:09:44 -0600 Subject: [PATCH 2/2] refactor: use reusable CI workflow Note: Removed matrix testing (Node 20, 22, 24). Now only tests Node 24 (default). Can add matrix support to reusable workflow later if needed. --- .github/workflows/ci.yml | 45 ++++++---------------------------------- 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a4e45e..32b3aba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,43 +6,10 @@ on: - 'main' pull_request: {} -defaults: - run: - shell: bash - jobs: - test: - name: Test Node ${{ matrix.node }} - runs-on: ubuntu-latest - strategy: - matrix: - node: [20, 22, 24] - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 10 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node }} - cache: 'pnpm' - - - name: Install Dependencies - run: | - pnpm install - - - name: Prettier - run: | - pnpm run prettier - - # - name: Lint - # run: | - # pnpm run lint - - - name: Build - run: | - pnpm run build - - - name: Test - run: | - pnpm run test:coverage -- --run + ci: + uses: workos/workflows/.github/workflows/ci.yml@main + with: + lint-command: prettier + run-typecheck: false # No typecheck script in package.json + test-command: test:coverage -- --run