From 6796fecb31449fc274eb6266dfb4fbb335f26ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=9C=E6=98=9F?= Date: Thu, 5 Mar 2026 18:30:48 +0800 Subject: [PATCH 1/2] chore(workflow): allow release tag and package.json version to differ in npm publish --- .github/workflows/publish-npm.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index c2fb9fb2..80b43d87 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -31,21 +31,6 @@ jobs: PACKAGE_VERSION=$(node -p "require('./package.json').version") echo "version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT echo "📦 Package.json version: $PACKAGE_VERSION" - - name: Get version from Release tag - id: release_version - run: | - RELEASE_VERSION=${GITHUB_REF#refs/tags/v} - echo "version=$RELEASE_VERSION" >> $GITHUB_OUTPUT - echo "🏷️ Release tag version: $RELEASE_VERSION" - - name: Verify version consistency - run: | - PACKAGE_V="${{ steps.package_version.outputs.version }}" - RELEASE_V="${{ steps.release_version.outputs.version }}" - if [ "$PACKAGE_V" != "$RELEASE_V" ]; then - echo "::error::❌ Version mismatch! package.json: $PACKAGE_V, tag: $RELEASE_V" - exit 1 - fi - echo "✅ Version match: $PACKAGE_V" - name: Check if version exists on npm id: npm_check run: | From 5399f992e44bbf66d272334991d706bdf13c6538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=9C=E6=98=9F?= Date: Fri, 6 Mar 2026 08:25:15 +0800 Subject: [PATCH 2/2] chore: update verstion to 1.0.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 69631cdb..96ea7e28 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "@trpc/client": "^11.0.1", "@trpc/react-query": "^11.0.1" }, - "version": "1.0.8", + "version": "1.0.9", "engines": { "node": ">=20.0.0", "npm": ">=10.0.0"