Skip to content

Commit

Permalink
fix how web protocol is removed from NPM_REGISTRY
Browse files Browse the repository at this point in the history
  • Loading branch information
ppferrari authored Feb 8, 2024
1 parent 1c9c6ed commit da1241d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/yarn_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ YarnRelease() {
cd "$PROJECT_DIR"

echo "Setting up .npmrc"
NPM_REGISTRY_HOSTNAME="${NPM_REGISTRY#'http://'}"
NPM_REGISTRY_HOSTNAME="${NPM_REGISTRY_HOSTNAME#'https://'}"
NPM_REGISTRY_HOSTNAME="${NPM_REGISTRY##*://}"
NPM_REGISTRY_HOSTNAME="${NPM_REGISTRY_HOSTNAME%'/'}"

echo "//$NPM_REGISTRY_HOSTNAME/:_authToken=$NPM_TOKEN" > "${HOME}/.npmrc"
npm config set "@cloudesire:registry" "$NPM_REGISTRY_HOSTNAME"
npm config set //$NPM_REGISTRY_HOSTNAME/repository/cloudesire-npm/:_authToken=$NPM_TOKEN

echo "Releasing $RELEASE_VERSION"
npm publish --registry $NPM_REGISTRY
Expand Down

0 comments on commit da1241d

Please sign in to comment.