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 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