From 20a2430d893a902fdcce7957bdee94f6b38888e1 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Wed, 22 Oct 2025 00:15:36 -0700 Subject: [PATCH] fix(ci): Reorder build steps to prevent lockfile inconsistency Reorders the steps in the 'publish-bundle' job to run the bundle creation and size check *before* modifying the package.json files for release. This prevents the 'package-lock.json' from becoming out-of-sync, which was causing the 'npm ci' command in the bundle size action to fail. --- .github/workflows/build-and-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 7b8a251973..572022e4c8 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -38,9 +38,6 @@ jobs: echo "@google-gemini:registry=https://npm.pkg.github.com/" > .npmrc echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc - - name: 'Prepare for GitHub release' - run: 'node scripts/prepare-github-release.js' - - name: 'Bundle' run: 'npm run bundle' @@ -54,6 +51,9 @@ jobs: compression: 'none' clean-script: 'clean' + - name: 'Prepare for GitHub release' + run: 'node scripts/prepare-github-release.js' + - name: 'Set CI Version' id: 'version' run: |