From 6b8bb7ae329bb7056eee576e2e6aa8d2753bb54d Mon Sep 17 00:00:00 2001 From: Masonlet Date: Fri, 17 Jul 2026 15:34:33 -0400 Subject: [PATCH 1/3] refactor: hoist workflows out of audio --- .github/workflows/ci.yml | 18 ++---------------- .github/workflows/publish.yml | 30 ++++++------------------------ 2 files changed, 8 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2dc4358..5e0eb8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,24 +2,10 @@ name: CI on: push: - branches: ['**'] + branches: [main] pull_request: branches: [main] jobs: build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '24' - - - name: Install dependencies - run: npm install - - - name: Run build - run: npm run build + uses: starweb-libs/.github/.github/workflows/build.yml@v1.0.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7fed609..0562c97 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,30 +6,12 @@ on: - 'v*' jobs: + build: + uses: starweb-libs/.github/.github/workflows/build.yml@v1.0.0 + publish: - runs-on: ubuntu-latest + needs: build 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' - - - 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 + uses: starweb-libs/.github/.github/workflows/publish.yml@v1.0.0 + secrets: inherit From c25d801cd0dde6b22638a0d0a4781068144d410f Mon Sep 17 00:00:00 2001 From: Masonlet Date: Fri, 17 Jul 2026 15:42:53 -0400 Subject: [PATCH 2/3] docs: add badges --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d0e0717..36d4d61 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Starweb Audio Web Audio API playback, volume, and sound management for the browser, built with TypeScript. +[![CI](https://github.com/starweb-libs/audio/actions/workflows/ci.yml/badge.svg)](https://github.com/starweb-libs/audio/actions/workflows/ci.yml) +[![Library Version](https://img.shields.io/npm/v/@starweb-libs/audio)](https://www.npmjs.com/package/@starweb-libs/audio) +[![License: MIT](https://img.shields.io/badge/License-MIT-green)](./LICENSE) + ## Tech Stack

From 88418e942686dee68767a04d01005d4a2301a0aa Mon Sep 17 00:00:00 2001 From: Masonlet Date: Fri, 17 Jul 2026 15:51:45 -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 80b51b2..c128d49 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" },