From 2437760d9d5449f952fd0a10c5f9f2d12b94e77d Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Fri, 14 Nov 2025 12:30:00 -0500 Subject: [PATCH 1/3] chore: manifest.json also needs a bump in version --- .github/workflows/publish-tag.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-tag.yml b/.github/workflows/publish-tag.yml index 3f58930..96eddab 100644 --- a/.github/workflows/publish-tag.yml +++ b/.github/workflows/publish-tag.yml @@ -22,7 +22,7 @@ jobs: node-version: '20' - name: Get triggering user's email - run: | + : | user_email=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/users/${{ github.actor }} | jq -r '.email') if [ -z "$user_email" ] || [ "$user_email" == "null" ]; then user_email="github-actions@github.com" @@ -34,11 +34,29 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" - - - name: Bump version and push tag + - name: Bump version, update manifest, commit and tag run: | + set -euo pipefail + npm install - npm version ${{ github.event.inputs.release_type }} -m "chore: bump version to %s" + + # 1) Bump package.json + package-lock.json but DO NOT commit/tag yet + npm version ${{ github.event.inputs.release_type }} --no-git-tag-version + + # 2) Read the new version from package.json + NEW_VERSION=$(node -p "require('./package.json').version") + echo "New version is: $NEW_VERSION" + + # 3) Update manifest.json's "version" field to match + jq --arg v "$NEW_VERSION" '.version = $v' manifest.json > manifest.json.tmp + mv manifest.json.tmp manifest.json + + # 4) Commit everything and create an annotated tag + git add package.json package-lock.json manifest.json + git commit -m "chore: bump version to $NEW_VERSION" + git tag -a "v$NEW_VERSION" -m "v$NEW_VERSION" + + # 5) Push commit and tag git push --follow-tags env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5589ab2a424814a603fddac25970038389330385 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Fri, 14 Nov 2025 12:35:33 -0500 Subject: [PATCH 2/3] Update publish-tag.yml --- .github/workflows/publish-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-tag.yml b/.github/workflows/publish-tag.yml index 96eddab..09ffeff 100644 --- a/.github/workflows/publish-tag.yml +++ b/.github/workflows/publish-tag.yml @@ -22,7 +22,7 @@ jobs: node-version: '20' - name: Get triggering user's email - : | + run: | user_email=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/users/${{ github.actor }} | jq -r '.email') if [ -z "$user_email" ] || [ "$user_email" == "null" ]; then user_email="github-actions@github.com" From 5455d0ede419debd53ef7977bb040addea3a1683 Mon Sep 17 00:00:00 2001 From: antobinary <6312397+antobinary@users.noreply.github.com> Date: Fri, 14 Nov 2025 17:36:01 +0000 Subject: [PATCH 3/3] chore: bump version to 0.0.3 --- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index c45a889..9d447f3 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "requiredSdkVersion": "~0.0.84", "name": "TourPlugin", - "version": "0.0.1", + "version": "0.0.3", "javascriptEntrypointUrl": "TourPlugin.js" } diff --git a/package-lock.json b/package-lock.json index ab31440..44fd529 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bbb-plugin-tour", - "version": "0.0.2", + "version": "0.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bbb-plugin-tour", - "version": "0.0.2", + "version": "0.0.3", "dependencies": { "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", diff --git a/package.json b/package.json index 8fe4f61..30f4f6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bbb-plugin-tour", - "version": "0.0.2", + "version": "0.0.3", "private": false, "main": "./src/index.tsx", "dependencies": {