From cc4e26f15492564a0d0473307a11a1807450f242 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon <67381+philsturgeon@users.noreply.github.com> Date: Tue, 7 Apr 2026 14:07:54 +0100 Subject: [PATCH 1/3] allow other content types like text/html --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4eaf3525..2698e6b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apisyouwonthate/spectral-jsonapi", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apisyouwonthate/spectral-jsonapi", - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "dependencies": { "@stoplight/spectral-formats": "^1.8.2", diff --git a/package.json b/package.json index ab7c4880..a37ca7a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apisyouwonthate/spectral-jsonapi", - "version": "2.0.0", + "version": "2.0.1", "description": "A Spectral ruleset for JSON:API, built as TypeScript.", "main": "dist/ruleset.js", "module": "dist/ruleset.mjs", From 8e7f48de8bc999ac37925803b49961eff38c6fc9 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon <67381+philsturgeon@users.noreply.github.com> Date: Tue, 7 Apr 2026 14:15:08 +0100 Subject: [PATCH 2/3] setup semantic release --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2698e6b0..4eaf3525 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apisyouwonthate/spectral-jsonapi", - "version": "2.0.1", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apisyouwonthate/spectral-jsonapi", - "version": "2.0.1", + "version": "2.0.0", "license": "MIT", "dependencies": { "@stoplight/spectral-formats": "^1.8.2", diff --git a/package.json b/package.json index a37ca7a1..ab7c4880 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apisyouwonthate/spectral-jsonapi", - "version": "2.0.1", + "version": "2.0.0", "description": "A Spectral ruleset for JSON:API, built as TypeScript.", "main": "dist/ruleset.js", "module": "dist/ruleset.mjs", From 60825b379250a0301c3eb38a247f3da424a4f694 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon <67381+philsturgeon@users.noreply.github.com> Date: Tue, 7 Apr 2026 18:27:13 +0100 Subject: [PATCH 3/3] automate release --- .github/workflows/release.yml | 3 --- .releaserc.json | 8 +++++++- CONTRIBUTING.md | 7 ------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe0325e2..64b0154f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - issues: write - pull-requests: write id-token: write steps: @@ -44,4 +42,3 @@ jobs: run: npm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index 0926c376..67e913b8 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -26,7 +26,13 @@ "npmPublish": true } ], - "@semantic-release/github", + [ + "@semantic-release/github", + { + "successComment": false, + "failComment": false + } + ], [ "@semantic-release/git", { diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 53d1553c..3e4ed65c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,10 +68,3 @@ Releases are automated with semantic-release via GitHub Actions on pushes to `ma - Commits should follow Conventional Commits (`feat:`, `fix:`, `feat!:`) so the next version can be calculated correctly. - The workflow publishes to npm and creates a GitHub release and tag like `v2.1.0`. -- Configure repository secret `NPM_TOKEN` with publish access to `@apisyouwonthate/spectral-jsonapi`. - -You can test release logic locally in dry-run mode: - -```bash -npm run release -- --dry-run --no-ci -```