From 2513dd929d404742cf8f2dced70b96750d336080 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Wed, 22 Oct 2025 00:46:39 -0700 Subject: [PATCH] revert(ci): Remove incorrect .npmrc creation from prepare-github-release.js Reverts the change that added .npmrc creation logic to 'scripts/prepare-github-release.js'. This logic was incorrectly overwriting the .npmrc file that is correctly configured by the 'Configure npm for GitHub Packages' step in the 'build-and-publish.yml' workflow, leading to authentication failures during npm publish. The workflow itself already handles the .npmrc creation correctly, and this revert ensures that the correct authentication token is preserved. --- scripts/prepare-github-release.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/prepare-github-release.js b/scripts/prepare-github-release.js index 1ddf212af3..681452a6c9 100644 --- a/scripts/prepare-github-release.js +++ b/scripts/prepare-github-release.js @@ -38,9 +38,4 @@ updatePackageJson('packages/core/package.json', (pkg) => { pkg.name = '@google-gemini/gemini-cli-core'; }); -// Create .npmrc for publishing to GitHub Packages -const npmrcContent = `@google-gemini:registry=https://npm.pkg.github.com/`; -fs.writeFileSync(path.resolve(rootDir, '.npmrc'), npmrcContent); -console.log('Created .npmrc for @google-gemini scope.'); - console.log('Successfully prepared packages for GitHub release.');