From a9834cc6c3174953f074c13394a07468f633d8e6 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Wed, 22 Oct 2025 12:16:45 -0700 Subject: [PATCH] fixing url parsing --- .gemini_tmp/commit_message.txt | 9 --------- scripts/configure-registry.js | 6 +++--- 2 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 .gemini_tmp/commit_message.txt diff --git a/.gemini_tmp/commit_message.txt b/.gemini_tmp/commit_message.txt deleted file mode 100644 index 32bcc84453..0000000000 --- a/.gemini_tmp/commit_message.txt +++ /dev/null @@ -1,9 +0,0 @@ -feat: Refactor release process for bundling - -This change refactors the release process to support a new bundle-based publishing method while maintaining backward compatibility for existing release and patch workflows. - -Key changes: -- The `publish-release` composite action now includes a `use-bundle-release` input (string, default 'false') to conditionally switch between the old source-based publishing and the new bundle-based method. -- The `release-nightly.yml` workflow is updated to use the new bundle-based process (`use-bundle-release: 'true'`). -- The `release-manual.yml` workflow includes a new `use_bundle_release` input (defaulting to false) to allow for manual testing of either release method. -- Existing `release-promote.yml` and patch workflows remain unchanged, ensuring they continue to use the old, non-bundled process for backward compatibility. \ No newline at end of file diff --git a/scripts/configure-registry.js b/scripts/configure-registry.js index 45a7a55985..611fe9e489 100644 --- a/scripts/configure-registry.js +++ b/scripts/configure-registry.js @@ -119,9 +119,9 @@ function setupProd() { const lines = npmrcContent.split('\n'); const filteredLines = lines.filter( (line) => - !line.includes('npm.pkg.github.com') && - !line.includes('@google-gemini:registry') && - !line.includes('# Added by gemini-cli'), + !line.trim().startsWith('//npm.pkg.github.com/') && + !line.trim().startsWith('@google-gemini:registry') && + !line.trim().startsWith('# Added by gemini-cli'), ); if (lines.length === filteredLines.length) {