From de22f00f07e5a30ed4234d66efc7456ebf9e4dda Mon Sep 17 00:00:00 2001 From: Masonlet Date: Tue, 7 Jul 2026 21:38:00 -0400 Subject: [PATCH 1/3] chore: use reusable .github ci and publish workflows --- .github/workflows/ci.yml | 20 +------------------- .github/workflows/publish.yml | 32 ++++++-------------------------- 2 files changed, 7 insertions(+), 45 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9b6c85..05389c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,22 +8,4 @@ on: jobs: test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 24 - cache: npm - - - name: Install dependencies - run: npm install - - - name: Type check - run: npm run typecheck - - - name: Run tests - run: npm run test:coverage + uses: contact-api/.github/.github/workflows/test.yml@v1.0.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7fed609..c0715d1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,30 +6,10 @@ on: - 'v*' jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '24' - registry-url: 'https://registry.npmjs.org' + test: + uses: contact-api/.github/.github/workflows/test.yml@v1.0.0 - - name: Install dependencies - run: npm install - - - name: Publish to npm - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - generate_release_notes: true + publish: + needs: test + uses: contact-api/.github/.github/workflows/publish.yml@v1.0.0 + secrets: inherit From 760204cee600fcf2bb021537f73847781da6b913 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Tue, 7 Jul 2026 22:20:53 -0400 Subject: [PATCH 2/3] fix: bump v1.0.1 --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05389c1..bc55e84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,4 +8,4 @@ on: jobs: test: - uses: contact-api/.github/.github/workflows/test.yml@v1.0.0 + uses: contact-api/.github/.github/workflows/test.yml@v1.0.1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0715d1..9552f64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,9 +7,9 @@ on: jobs: test: - uses: contact-api/.github/.github/workflows/test.yml@v1.0.0 + uses: contact-api/.github/.github/workflows/test.yml@v1.0.1 publish: needs: test - uses: contact-api/.github/.github/workflows/publish.yml@v1.0.0 + uses: contact-api/.github/.github/workflows/publish.yml@v1.0.1 secrets: inherit From 8764e86d9e65245077f50792c2525c37ef9e375a Mon Sep 17 00:00:00 2001 From: Masonlet Date: Tue, 7 Jul 2026 22:21:57 -0400 Subject: [PATCH 3/3] docs: ci and license badge --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ed24068..a0ad054 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Contact API Resend Resend email provider for `@contact-api/core`. +[![CI](https://github.com/contact-api/resend/actions/workflows/ci.yml/badge.svg)](https://github.com/contact-api/resend/actions/workflows/ci.yml) +[![License: MIT](https://img.shields.io/badge/license-MIT-green)](./LICENSE) + ## Usage ```ts import { createResendProvider } from "@contact-api/resend";