diff options
| author | Brandon Keiji <[email protected]> | 2025-04-29 01:16:42 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-28 18:16:42 -0700 |
| commit | 3073c67861806a5312f5a7fa4c1c091507bd4755 (patch) | |
| tree | 9199ea79f30bfdf55680903284d185f5fc4dcf7f /packages | |
| parent | cd1ddcb4f1e9bb7b27af5ae57a6d2d19693f2067 (diff) | |
fix: set .npmrc in HOME dir before publishing (#206)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/cli/.npmrc | 2 | ||||
| -rw-r--r-- | packages/cli/Dockerfile.sandbox | 1 | ||||
| -rwxr-xr-x | packages/cli/bin/sandbox.sh | 4 |
3 files changed, 2 insertions, 5 deletions
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 |
