Updated registry.

This commit is contained in:
2026-01-01 18:00:28 -08:00
parent 815c4696d6
commit 0fe8c2d522
2 changed files with 1 additions and 5 deletions

View File

@@ -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

View File

@@ -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")