Files
Roo-Code/scripts/codeartifact-login.sh
ColemanRoo e55696e247 Fix Package Publish Workflow (#11)
* fixing access to codeartifact login script

* adjust namespace to match other Roo packages

* addling line to install vsce to Github action

* removing namespace as it is not valid for extension name

* version bump

* updating package-lock and doing full install for publish action

* update workflow package install steps

* update package install steps
2024-11-19 21:27:58 -06:00

15 lines
674 B
Bash
Executable File

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