From b77b8c172bac74c73b52c607e661e67705649deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20K=C3=B5osaar?= Date: Wed, 18 Mar 2026 15:55:04 +0200 Subject: [PATCH 1/4] chore: update --- .github/workflows/release.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b140575..2f49f63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,29 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Verify tag is on main + run: | + git fetch origin main + if git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then + echo "Tag commit is on main. Proceeding with release." + else + echo "Error: Tag commit is not on main. Aborting release." + exit 1 + fi + + - name: Verify package.json version matches tag + run: | + PKG_VERSION="v$(node -p "require('./package.json').version")" + TAG_VERSION="${GITHUB_REF_NAME}" + echo "package.json version: $PKG_VERSION" + echo "Git tag: $TAG_VERSION" + if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then + echo "Error: package.json version ($PKG_VERSION) does not match git tag ($TAG_VERSION)." + exit 1 + fi - name: Setup Node.js uses: actions/setup-node@v6 @@ -35,7 +58,7 @@ jobs: run: npm pack - name: Publish to npm - run: npm publish --access public + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From b5ec8b3daaec2d64028f9b34167eb7b6a71cc398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20K=C3=B5osaar?= Date: Wed, 18 Mar 2026 16:35:13 +0200 Subject: [PATCH 2/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f49f63..9c10692 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: - name: Verify package.json version matches tag run: | - PKG_VERSION="v$(node -p "require('./package.json').version")" + PKG_VERSION="v$(node -p 'require("./package.json").version')" TAG_VERSION="${GITHUB_REF_NAME}" echo "package.json version: $PKG_VERSION" echo "Git tag: $TAG_VERSION" From 5c9aad150905da360501d27dae87f8911b36ad44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20K=C3=B5osaar?= Date: Wed, 18 Mar 2026 16:42:21 +0200 Subject: [PATCH 3/4] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c10692..b11c10d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: '20' + node-version: '24' cache: 'npm' registry-url: 'https://registry.npmjs.org' From 5fcf5720bd383fc4cb576c51b6f683dd45936d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20K=C3=B5osaar?= Date: Wed, 18 Mar 2026 16:43:00 +0200 Subject: [PATCH 4/4] update ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 310102c..17f3709 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - node-version: [18, 20, 22] + node-version: [20, 22, 24] steps: - name: Checkout