From 3073c67861806a5312f5a7fa4c1c091507bd4755 Mon Sep 17 00:00:00 2001 From: Brandon Keiji Date: Tue, 29 Apr 2025 01:16:42 +0000 Subject: fix: set .npmrc in HOME dir before publishing (#206) --- packages/cli/.npmrc | 2 -- packages/cli/Dockerfile.sandbox | 1 + packages/cli/bin/sandbox.sh | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 packages/cli/.npmrc (limited to 'packages/cli') diff --git a/packages/cli/.npmrc b/packages/cli/.npmrc deleted file mode 100644 index e17bb8be..00000000 --- a/packages/cli/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -@gemini-code:registry=https://us-west1-npm.pkg.dev/gemini-code-dev/gemini-code/ -//us-west1-npm.pkg.dev/gemini-code-dev/gemini-code/:always-auth=true \ No newline at end of file diff --git a/packages/cli/Dockerfile.sandbox b/packages/cli/Dockerfile.sandbox index 1d4c4048..1395a547 100644 --- a/packages/cli/Dockerfile.sandbox +++ b/packages/cli/Dockerfile.sandbox @@ -23,4 +23,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* RUN --mount=type=secret,id=npmrc,dst=/root/.npmrc npm install -g @gemini-code/cli@${CLI_VERSION} --verbose + ENTRYPOINT 'gemini-code' diff --git a/packages/cli/bin/sandbox.sh b/packages/cli/bin/sandbox.sh index 8ba697f2..7cfada0f 100755 --- a/packages/cli/bin/sandbox.sh +++ b/packages/cli/bin/sandbox.sh @@ -49,6 +49,4 @@ if [ -n "${COLORTERM:-}" ]; then run_args+=(--env COLORTERM="$COLORTERM"); fi # this is the preferred mechanism to detect if inside container/sandbox run_args+=(--env "SANDBOX=$IMAGE:$TAG-$INDEX") -node_args=("$CLI_PATH" "$@") - -docker run "${run_args[@]}" --init --workdir "$WORKDIR" "$REGISTRY/$IMAGE:$TAG" node "${node_args[@]}" +docker run "${run_args[@]}" --init --workdir "$WORKDIR" "$REGISTRY/$IMAGE:$TAG" \ No newline at end of file -- cgit v1.2.3