Skip to content

fix(ci): provide fallbacks for package variables in nightly release#28016

Merged
galz10 merged 1 commit into
mainfrom
galzahavi/fix/nightly
Jun 18, 2026
Merged

fix(ci): provide fallbacks for package variables in nightly release#28016
galz10 merged 1 commit into
mainfrom
galzahavi/fix/nightly

Conversation

@galz10

@galz10 galz10 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes the nightly release workflow failing during the publish step for scheduled runs. Scheduled runs use the internal environment which does not define the package name variables, resulting in npm publish receiving empty workspace names and failing. This adds default fallbacks for these variables.

Details

The scheduled release-nightly.yml workflow was changed recently to use the internal environment instead of prod. The internal environment doesn't have the vars.CLI_PACKAGE_NAME, vars.CORE_PACKAGE_NAME, and vars.A2A_PACKAGE_NAME repository variables configured. Consequently, they evaluate to empty strings, causing the npm publish --workspace="" command to fail with an error npm error No workspaces found.

This PR adds default values to the variables directly in the workflow file.

Related Issues

Fixes #28001 (Scheduled release failure)

How to Validate

  1. Trigger the Release: Nightly workflow via workflow_dispatch with the internal environment (if possible) or review the generated variables.
  2. Ensure that the package names correctly fall back to @google/gemini-cli, @google/gemini-cli-core, and @google/gemini-cli-a2a-server.

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

The nightly release workflow uses the 'internal'
   environment on schedule triggers, which does not have the package name variables defined. This led to empty strings being passed to the publish
   action, causing npm to fail with 'No workspaces found: --workspace='.
@galz10 galz10 requested a review from a team as a code owner June 18, 2026 18:17
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions github-actions Bot added the size/s A small PR label Jun 18, 2026
@github-actions

Copy link
Copy Markdown

📊 PR Size: size/S

  • Lines changed: 12
  • Additions: +6
  • Deletions: -6
  • Files changed: 1

@gemini-cli gemini-cli Bot added priority/p1 Important and should be addressed in the near term. area/non-interactive Issues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automation labels Jun 18, 2026
@github-actions

Copy link
Copy Markdown

Size Change: -4 B (0%)

Total Size: 33.9 MB

Filename Size Change
./bundle/chunk-46ACHMDP.js 0 B -16.4 MB (removed) 🏆
./bundle/chunk-BIILPJ2Z.js 0 B -49.2 kB (removed) 🏆
./bundle/chunk-EEFGIREX.js 0 B -3.43 kB (removed) 🏆
./bundle/chunk-J55NOHYL.js 0 B -661 kB (removed) 🏆
./bundle/chunk-M7HBHMD4.js 0 B -2.79 MB (removed) 🏆
./bundle/chunk-MGQO6BMA.js 0 B -19.5 kB (removed) 🏆
./bundle/chunk-QAYQP5BU.js 0 B -13 kB (removed) 🏆
./bundle/chunk-S6DJCJFN.js 0 B -3.77 kB (removed) 🏆
./bundle/core-65ZNBFFY.js 0 B -50 kB (removed) 🏆
./bundle/devtoolsService-4GBMBUGJ.js 0 B -28 kB (removed) 🏆
./bundle/gemini-F766B53D.js 0 B -589 kB (removed) 🏆
./bundle/interactiveCli-GXHCTSHT.js 0 B -1.3 MB (removed) 🏆
./bundle/liteRtServerManager-7ASUEUT4.js 0 B -2.08 kB (removed) 🏆
./bundle/oauth2-provider-5RATWQF7.js 0 B -9.12 kB (removed) 🏆
./bundle/chunk-BVL4OJQW.js 49.2 kB +49.2 kB (new file) 🆕
./bundle/chunk-END3Y2FQ.js 3.43 kB +3.43 kB (new file) 🆕
./bundle/chunk-GEJQGSZI.js 19.5 kB +19.5 kB (new file) 🆕
./bundle/chunk-LQOG7B4N.js 2.79 MB +2.79 MB (new file) 🆕
./bundle/chunk-PDUHDXPR.js 661 kB +661 kB (new file) 🆕
./bundle/chunk-QJ4WX7VX.js 3.77 kB +3.77 kB (new file) 🆕
./bundle/chunk-QPWWIMKN.js 16.4 MB +16.4 MB (new file) 🆕
./bundle/chunk-QY3P4JYE.js 13 kB +13 kB (new file) 🆕
./bundle/core-FAEQOVBX.js 50 kB +50 kB (new file) 🆕
./bundle/devtoolsService-O7F5GU2X.js 28 kB +28 kB (new file) 🆕
./bundle/gemini-QMUDAVXW.js 589 kB +589 kB (new file) 🆕
./bundle/interactiveCli-CYQQFQEZ.js 1.3 MB +1.3 MB (new file) 🆕
./bundle/liteRtServerManager-XFL4RMXY.js 2.08 kB +2.08 kB (new file) 🆕
./bundle/oauth2-provider-P6DH4T5F.js 9.12 kB +9.12 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
./bundle/bundled/third_party/index.js 8 MB 0 B
./bundle/chunk-34MYV7JD.js 2.45 kB 0 B
./bundle/chunk-5AUYMPVF.js 858 B 0 B
./bundle/chunk-5PS3AYFU.js 1.18 kB 0 B
./bundle/chunk-6HI7VNOG.js 124 kB 0 B
./bundle/chunk-DAHVX5MI.js 206 kB 0 B
./bundle/chunk-IUUIT4SU.js 56.5 kB 0 B
./bundle/chunk-TUDYL3X4.js 40.3 kB 0 B
./bundle/cleanup-RQK5ZSKR.js 0 B -902 B (removed) 🏆
./bundle/devtools-V7NE4CQA.js 696 kB 0 B
./bundle/events-XB7DADIJ.js 418 B 0 B
./bundle/examples/hooks/scripts/on-start.js 188 B 0 B
./bundle/examples/mcp-server/example.js 1.43 kB 0 B
./bundle/gemini.js 5.38 kB 0 B
./bundle/getMachineId-bsd-TXG52NKR.js 1.55 kB 0 B
./bundle/getMachineId-darwin-7OE4DDZ6.js 1.55 kB 0 B
./bundle/getMachineId-linux-SHIFKOOX.js 1.34 kB 0 B
./bundle/getMachineId-unsupported-5U5DOEYY.js 1.06 kB 0 B
./bundle/getMachineId-win-6KLLGOI4.js 1.72 kB 0 B
./bundle/https-proxy-agent-AVGR4LHR.js 490 B 0 B
./bundle/multipart-parser-KPBZEGQU.js 11.7 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B
./bundle/sandbox-macos-strict-open.sb 4.82 kB 0 B
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB 0 B
./bundle/src-LG4OHBW7.js 233 kB 0 B
./bundle/src-QVCVGIUX.js 47 kB 0 B
./bundle/start-DWJSEUEY.js 0 B -622 B (removed) 🏆
./bundle/tree-sitter-7U6MW5PS.js 274 kB 0 B
./bundle/tree-sitter-bash-34ZGLXVX.js 1.84 MB 0 B
./bundle/worker/worker-entry.js 361 kB 0 B
./bundle/cleanup-75HVGYAN.js 902 B +902 B (new file) 🆕
./bundle/start-HDEEONNI.js 622 B +622 B (new file) 🆕

compressed-size-action

@galz10 galz10 added this pull request to the merge queue Jun 18, 2026
Merged via the queue into main with commit c427d18 Jun 18, 2026
33 checks passed
@galz10 galz10 deleted the galzahavi/fix/nightly branch June 18, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/non-interactive Issues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automation priority/p1 Important and should be addressed in the near term. size/s A small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nightly Release Failed for v0.48.0-nightly.20260618.g4d3dcdce1 on 2026-06-18

2 participants