From 3be4939ff56353539ceabb8de339b98d6ccdeb71 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 10 Feb 2026 13:39:41 +0100 Subject: [PATCH] fix: optimize ci pipeline and dynamic registry auth --- .gitea/workflows/ci.yml | 11 +++++------ .gitea/workflows/deploy.yml | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2debe967..93f72651 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,18 +13,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Setup pnpm uses: pnpm/action-setup@v3 with: version: 10 run_install: false - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'pnpm' - - name: 🔐 Configure Private Registry run: | REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e6f3c237..664f246f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -161,18 +161,17 @@ jobs: with: fetch-depth: 1 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Setup pnpm uses: pnpm/action-setup@v3 with: version: 10 run_install: false - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'pnpm' - - name: 🔐 Configure Private Registry run: | REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" @@ -421,18 +420,17 @@ jobs: with: fetch-depth: 1 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Setup pnpm uses: pnpm/action-setup@v3 with: version: 10 run_install: false - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'pnpm' - - name: 🔐 Configure Private Registry run: | REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}"