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 +