From 7d468f6381e0d78fe23be88f3bbbf21005c64767 Mon Sep 17 00:00:00 2001 From: Anand Tripathi Date: Thu, 1 Feb 2024 18:16:50 +0100 Subject: [PATCH] Update compile --- bin/compile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/compile b/bin/compile index df4a868..c98902c 100644 --- a/bin/compile +++ b/bin/compile @@ -6,9 +6,9 @@ GITHUB_TOKEN="$(cat $ENV_DIR/GITHUB_TOKEN)" REPO_USER="$(cat $ENV_DIR/REPO_USER)" -if [ "$GITHUB_TOKEN" != "" ]; then - echo "-----> Using .npmrc to install packages from https://npm.pkg.github.com/$REPO_USER" - echo "@$REPO_USER:registry=https://npm.pkg.github.com" > "$BUILD_DIR/.npmrc" - echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> "$BUILD_DIR/.npmrc" - exit 0 -fi + +echo "-----> Using .npmrc to install packages from https://npm.pkg.github.com/$REPO_USER" +echo "@$REPO_USER:registry=https://npm.pkg.github.com" > "$BUILD_DIR/.npmrc" +echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> "$BUILD_DIR/.npmrc" +exit 0 +