From 0784970a3357beaa520287eb20092645f4c1d152 Mon Sep 17 00:00:00 2001 From: a8trejo Date: Wed, 27 Nov 2024 20:40:08 -0800 Subject: [PATCH] Removing unused file --- .github/scripts/codeartifact-login.sh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 .github/scripts/codeartifact-login.sh diff --git a/.github/scripts/codeartifact-login.sh b/.github/scripts/codeartifact-login.sh deleted file mode 100755 index 177f1d5824..0000000000 --- a/.github/scripts/codeartifact-login.sh +++ /dev/null @@ -1,15 +0,0 @@ -AWS_VERSION=$(aws --version 2>&1 | cut -d/ -f2 | cut -d. -f1) -echo "aws-cli/$AWS_VERSION" - -if [ "$AWS_VERSION" -lt 2 ]; then - echo "Skipping .npmrc generation because AWS CLI version is less than 2" -else - echo "Generating .npmrc" - REPO_ENDPOINT=$(aws codeartifact get-repository-endpoint --domain roo --repository roo-dev --format npm | jq -r '.repositoryEndpoint') - echo "registry=$REPO_ENDPOINT" > .npmrc - - CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain roo --query authorizationToken --output text) - - REPO_PATH=$(echo $REPO_ENDPOINT | sed 's/https://g') - echo "$REPO_PATH:_authToken=$CODEARTIFACT_AUTH_TOKEN" >> .npmrc -fi