Updated registry.
This commit is contained in:
@@ -20,7 +20,7 @@ if [[ -n "$WORKING_DIR" && "$WORKING_DIR" != "." ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure npm registry
|
# Configure npm registry
|
||||||
if [[ -n "$REGISTRY" && "$REGISTRY" != "https://registry.npmjs.org" ]]; then
|
if [[ -n "$REGISTRY" ]]; then
|
||||||
npm config set registry "$REGISTRY"
|
npm config set registry "$REGISTRY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ fi
|
|||||||
|
|
||||||
# Construct the registry URL
|
# Construct the registry URL
|
||||||
REGISTRY_URL="$REGISTRY"
|
REGISTRY_URL="$REGISTRY"
|
||||||
if [[ "$REGISTRY" == ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/nuget/index.json ]]; then
|
|
||||||
# GitHub Packages uses a specific URL format
|
|
||||||
REGISTRY_URL="$REGISTRY"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Build curl headers
|
# Build curl headers
|
||||||
CURL_HEADERS=(-H "Accept: application/vnd.npm.install-v1+json")
|
CURL_HEADERS=(-H "Accept: application/vnd.npm.install-v1+json")
|
||||||
|
|||||||
Reference in New Issue
Block a user