From 1c71af809224b533132c49fd66ce26c0ad412e47 Mon Sep 17 00:00:00 2001 From: RomanDenysov Date: Sat, 7 Feb 2026 20:39:50 +0100 Subject: [PATCH 1/2] chore: bump @consentify/core and @consentify/react to 2.0.0 Co-Authored-By: Claude Opus 4.6 --- packages/core/package.json | 2 +- packages/react/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 3e42432..08f8238 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@consentify/core", - "version": "1.1.0", + "version": "2.0.0", "description": "Minimal headless cookie consent SDK (TypeScript, SSR-ready, lazy-init).", "author": { "name": "Roman Denysov", diff --git a/packages/react/package.json b/packages/react/package.json index 473dc03..96071c1 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@consentify/react", - "version": "1.0.0", + "version": "2.0.0", "description": "React hook for @consentify/core", "author": { "name": "Roman Denysov", From 43b705d889be781fad3e507b92476d177aaafe10 Mon Sep 17 00:00:00 2001 From: RomanDenysov Date: Sat, 7 Feb 2026 20:42:44 +0100 Subject: [PATCH 2/2] fix(ci): only publish when tag points to a commit on main Prevents accidental releases from feature branches when tags are pushed before the PR is merged. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44feb82..95e60bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,10 @@ jobs: contents: read steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Ensure tag is on main + run: git merge-base --is-ancestor ${{ github.sha }} origin/main - uses: actions/setup-node@v4 with: node-version: 20