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.
This commit is contained in:
mkorwel
2025-10-22 00:15:36 -07:00
parent a7395df23a
commit 20a2430d89
+3 -3
View File
@@ -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: |