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