From 45f831ca1c80a379bff3ed5883047ca9b5cbee20 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 24 Apr 2026 11:59:01 +0200 Subject: [PATCH] fix: improve registry auth robustness --- .gitea/workflows/quality-assurance-template.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/quality-assurance-template.yml b/.gitea/workflows/quality-assurance-template.yml index bde6175..24b040b 100644 --- a/.gitea/workflows/quality-assurance-template.yml +++ b/.gitea/workflows/quality-assurance-template.yml @@ -44,8 +44,11 @@ jobs: node-version: 20 - name: ๐Ÿ” Registry Auth run: | - echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc - echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN || secrets.MINTEL_PRIVATE_TOKEN || secrets.GITEA_PAT }}" >> .npmrc + REGISTRY="${{ vars.REGISTRY_HOST || 'git.infra.mintel.me/api/packages/mmintel/npm' }}" + echo "@mintel:registry=https://$REGISTRY" > .npmrc + # Remove protocol if present for the token line + TOKEN_REGISTRY=$(echo "$REGISTRY" | sed 's|https://||') + echo "//$TOKEN_REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.MINTEL_PRIVATE_TOKEN || secrets.GITEA_PAT }}" >> .npmrc - name: ๐Ÿงน Clean Runner Infrastructure run: | docker builder prune -f --filter "until=24h" || true