From 9aeb85ab44249ef990f6bef341e0d91511d58f0d Mon Sep 17 00:00:00 2001 From: Masonlet Date: Fri, 17 Jul 2026 15:36:41 -0400 Subject: [PATCH 1/3] feat: add reusable workflows --- .github/workflows/ci.yml | 11 +++++++++++ .github/workflows/publish.yml | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5e0eb8e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,11 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + uses: starweb-libs/.github/.github/workflows/build.yml@v1.0.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0562c97 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +jobs: + build: + uses: starweb-libs/.github/.github/workflows/build.yml@v1.0.0 + + publish: + needs: build + permissions: + contents: write + uses: starweb-libs/.github/.github/workflows/publish.yml@v1.0.0 + secrets: inherit From bf28f6cd6b22ed41877105d6bf7a70a165ac1c08 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Fri, 17 Jul 2026 15:46:07 -0400 Subject: [PATCH 2/3] docs: add template badges --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 31c8432..b9ac901 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ YOUR-DESCRIPTION +[![CI](https://github.com/starweb-libs/NAME/actions/workflows/ci.yml/badge.svg)](https://github.com/starweb-libs/NAME/actions/workflows/ci.yml) +[![Library Version](https://img.shields.io/npm/v/@starweb-libs/NAME)](https://www.npmjs.com/package/@starweb-libs/NAME) +[![License: MIT](https://img.shields.io/badge/License-MIT-green)](./LICENSE) + ## Tech Stack

From 35d2914c6545bf67f2aecbba579c3d7251a29c34 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Fri, 17 Jul 2026 15:54:06 -0400 Subject: [PATCH 3/3] chore: add typecheck script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 5a764c2..1c9ff11 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "tsdown": "^0.22.0" }, "scripts": { + "typecheck": "tsc --noEmit", "build": "tsdown", "prepare": "npm run build" },