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