From 45af51d994585cc537918068a8c80f90e3d88695 Mon Sep 17 00:00:00 2001 From: Vincent Giersch Date: Tue, 30 Jun 2026 14:02:54 +0200 Subject: [PATCH] ci: publish to npm on version tags + release v1.1.0 Add a Publish Package workflow that runs on `v*` tags and publishes to npm via OIDC trusted publishing (no token), mirroring FlatIO/embed-client. Bump to 1.1.0 so a v1.1.0 tag publishes the localized-catalogs release. --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..39fcc5f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Publish Package + +on: + push: + tags: + - 'v*' + +permissions: + id-token: write # Required for npm OIDC trusted publishing + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 11.0.9 + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: pnpm + registry-url: 'https://registry.npmjs.org' + - run: npm install -g npm@latest + - run: pnpm install --frozen-lockfile + - run: pnpm build-schema + - run: pnpm validate + - run: pnpm build + - run: pnpm test + - run: npm publish --access public diff --git a/package.json b/package.json index e259711..0c444e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flat/instruments", - "version": "1.0.0", + "version": "1.1.0", "description": "The public catalog of musical instruments used by the Flat platform and API.", "license": "UNLICENSED", "packageManager": "pnpm@11.0.9",