fix: deploy
This commit is contained in:
@@ -25,6 +25,11 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
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
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -173,6 +173,11 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
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
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
env:
|
env:
|
||||||
@@ -426,6 +431,11 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
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
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ WORKDIR /app
|
|||||||
RUN npm install -g pnpm@10
|
RUN npm install -g pnpm@10
|
||||||
|
|
||||||
# Install dependencies based on the preferred package manager
|
# Install dependencies based on the preferred package manager
|
||||||
COPY package.json pnpm-lock.yaml* .npmrc* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
ARG NPM_TOKEN
|
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
|
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user