From adfae33e5d1b6b3cf4baabac8e91f5aade37439e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 14:39:45 +0000 Subject: [PATCH 1/2] Initial plan From 1269ace931d66171bdcafadb3a40abc51bcd5f47 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 14:41:38 +0000 Subject: [PATCH 2/2] fix: trigger publish workflow only on v*.*.* tags, remove redundant tag validation step Co-authored-by: y-aithnini <241273478+y-aithnini@users.noreply.github.com> --- .github/workflows/publish.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 91d232e..2623562 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,8 +2,8 @@ name: Publish to NPM on: push: - branches: - - master + tags: + - "v*.*.*" workflow_dispatch: jobs: @@ -17,23 +17,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Validate tag exists on this push - run: | - TAG=$(git describe --exact-match --tags HEAD 2>/dev/null || echo "") - if [[ -z "$TAG" ]]; then - echo "❌ No tag found on HEAD. This push did not include a version tag." - echo "To publish, merge to master with a tag: git tag v1.0.0 && git push origin master --tags" - exit 1 - fi - if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "❌ Invalid tag format: $TAG. Expected: v*.*.*" - exit 1 - fi - echo "✅ Valid tag found: $TAG" - echo "TAG_VERSION=$TAG" >> $GITHUB_ENV - name: Setup Node.js uses: actions/setup-node@v4