fix: deploy

This commit is contained in:
2026-02-10 13:23:51 +01:00
parent eedfb36764
commit 69fabf39a7
3 changed files with 20 additions and 1 deletions

View File

@@ -25,6 +25,11 @@ jobs:
node-version: 20
cache: 'pnpm'
- name: 🔐 Configure Private Registry
run: |
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc
echo "//npm.infra.mintel.me/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
- name: Install dependencies
run: pnpm install
env:

View File

@@ -173,6 +173,11 @@ jobs:
node-version: 20
cache: 'pnpm'
- name: 🔐 Configure Private Registry
run: |
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc
echo "//npm.infra.mintel.me/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
- name: Install dependencies
run: pnpm install
env:
@@ -426,6 +431,11 @@ jobs:
node-version: 20
cache: 'pnpm'
- name: 🔐 Configure Private Registry
run: |
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc
echo "//npm.infra.mintel.me/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
- name: Install dependencies
run: pnpm install

View File

@@ -9,8 +9,12 @@ WORKDIR /app
RUN npm install -g pnpm@10
# Install dependencies based on the preferred package manager
COPY package.json pnpm-lock.yaml* .npmrc* ./
COPY package.json pnpm-lock.yaml* ./
ARG NPM_TOKEN
RUN if [ -n "$NPM_TOKEN" ]; then \
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \
echo "//npm.infra.mintel.me/:_authToken=$NPM_TOKEN" >> .npmrc; \
fi
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile