Skip to content

Commit

Permalink
Update compile
Browse files Browse the repository at this point in the history
  • Loading branch information
anandtripathi5 authored Feb 1, 2024
1 parent c82a684 commit 7d468f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7d468f6

Please sign in to comment.