From 13e0e6c4be112f51edcc99f2f7844a592a1bc885 Mon Sep 17 00:00:00 2001 From: Scion Date: Thu, 12 Mar 2026 21:17:27 -0700 Subject: [PATCH] Updated keys. --- npm/npm-test/action.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npm/npm-test/action.yaml b/npm/npm-test/action.yaml index 61705db..343ffcc 100644 --- a/npm/npm-test/action.yaml +++ b/npm/npm-test/action.yaml @@ -65,11 +65,13 @@ runs: - name: "Configure npm authentication" if: ${{ inputs.registries && inputs.apiKeys }} run: | + DEFAULT_REGISTRY="https://registry.npmjs.org" + DEFAULT_API_KEY="none" REGISTRIES="${{ inputs.registries }}" API_KEYS="${{ inputs.apiKeys }}" if [ "${{ inputs.useDefaultRegistry }}" == "true" ]; then - REGISTRIES=$(printf '%s\n%s' 'https://registry.npmjs.org' "$REGISTRIES") - API_KEYS=$(printf '%s\n%s' 'none' "$API_KEYS") + REGISTRIES=$(printf '%s\n%s' "$DEFAULT_REGISTRY" "$REGISTRIES") + API_KEYS=$(printf '%s\n%s' "$DEFAULT_API_KEY" "$API_KEYS") fi bash "${{ github.action_path }}/configure-auth.sh" add "$REGISTRIES" "$API_KEYS" working-directory: ${{ inputs.workingDirectory }}