From f43fd9af3cefbd674c517a1b1d49360d7a1ee316 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 7 Mar 2026 17:00:33 +0100 Subject: [PATCH 1/4] Update .github/workflows/bump-version.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/bump-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 8d5c8508..e2b436ae 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -21,8 +21,8 @@ jobs: with: # fetch-depth 2 so git diff HEAD~1 HEAD works for detecting changed files fetch-depth: 2 - # Use a token so the pushed commit triggers deploy.yml - token: ${{ secrets.GITHUB_TOKEN }} + # Use a PAT/GitHub App token so the pushed commit can trigger deploy.yml and other workflows + token: ${{ secrets.RELEASE_BOT_TOKEN }} - name: Set up Node uses: actions/setup-node@v6 From 2eeb016c9e81a1e593e099820e02d0a3c756c7f8 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 7 Mar 2026 17:02:58 +0100 Subject: [PATCH 2/4] Update .github/workflows/bump-version.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/bump-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index e2b436ae..ea2c9076 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v6 with: - node-version: lts/* + node-version: '24.x' cache: npm - name: Determine bump type from PR labels From 7b498020048089895bfb6ce4dfde07b0cf1d4848 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Mar 2026 17:03:34 +0100 Subject: [PATCH 3/4] fix: sync package-lock.json version fields during automated version bump (#1345) * Initial plan * fix: update package-lock.json version fields during version bump Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --- scripts/bump-version.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/bump-version.js b/scripts/bump-version.js index e9859e82..e11ba058 100644 --- a/scripts/bump-version.js +++ b/scripts/bump-version.js @@ -7,6 +7,7 @@ * Updates: * - public/versioning.js — VERSION constant * - package.json — "version" field + * - package-lock.json — top-level "version" and packages[""].version fields * - src/index.html — ?v= cache-busting hashes for changed public/*.js files * * Usage: @@ -28,6 +29,7 @@ const {execSync} = require("child_process"); const repoRoot = path.resolve(__dirname, ".."); const packageJsonPath = path.join(repoRoot, "package.json"); +const packageLockJsonPath = path.join(repoRoot, "package-lock.json"); const versioningPath = path.join(repoRoot, "public", "versioning.js"); const indexHtmlPath = path.join(repoRoot, "src", "index.html"); @@ -138,6 +140,22 @@ function updatePackageJson(newVersion, dry) { console.log(` package.json ${oldVersion} → ${newVersion}`); } +function updatePackageLockJson(newVersion, dry) { + if (!fs.existsSync(packageLockJsonPath)) { + console.log(" package-lock.json (not found, skipping)"); + return; + } + const original = readFile(packageLockJsonPath); + const lock = JSON.parse(original); + const oldVersion = lock.version; + lock.version = newVersion; + if (lock.packages && lock.packages[""]) { + lock.packages[""].version = newVersion; + } + if (!dry) writeFile(packageLockJsonPath, `${JSON.stringify(lock, null, 2)}\n`); + console.log(` package-lock.json ${oldVersion} → ${newVersion}`); +} + function updateIndexHtmlHashes(newVersion, dry) { const changedFiles = getChangedPublicJsFiles(); @@ -231,6 +249,7 @@ async function main() { updateVersioningJs(newVersion, dry); updatePackageJson(newVersion, dry); + updatePackageLockJson(newVersion, dry); updateIndexHtmlHashes(newVersion, dry); console.log(`\n[bump-version] ${dry ? "(dry run) " : ""}done.\n`); From ab445d910e2a5a171dfe8e7488240f6f7e9d58de Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Mar 2026 17:03:50 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Fix=20branch=20name=20in=20versioning.js=20?= =?UTF-8?q?comment:=20'main'=20=E2=86=92=20'master'=20(#1346)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Initial plan * fix: update branch name in versioning.js comment from 'main' to 'master' Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com> --- public/versioning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/versioning.js b/public/versioning.js index 9639d4dc..e6660a66 100644 --- a/public/versioning.js +++ b/public/versioning.js @@ -5,7 +5,7 @@ * We use Semantic Versioning: major.minor.patch. Refer to https://semver.org * Our .map file format is considered the public API. * - * Update the version on each merge to main: + * Update the version on each merge to master: * 1. MAJOR version: Incompatible changes that break existing maps * 2. MINOR version: Additions or changes that are backward-compatible but may require old .map files to be updated * 3. PATCH version: Backward-compatible bug fixes and small features that don't affect the .map file format