diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 211e9b32..d8b5e8ee 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,17 +10,18 @@ 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 306ba82f..f378268c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -154,14 +154,15 @@ jobs: steps: - 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 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: 🔐 Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -180,7 +181,7 @@ jobs: # ────────────────────────────────────────────────────────────────────────────── build: name: 🏗️ Build - needs: [prepare, qa] + needs: prepare if: needs.prepare.outputs.target != 'skip' runs-on: docker container: @@ -386,14 +387,15 @@ jobs: steps: - 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 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: 🔐 Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -418,14 +420,15 @@ jobs: steps: - 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 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: 🔐 Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc