diff --git a/core/package.json b/core/package.json index f02568f..1ae016c 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@ambarltd/core", - "version": "0.1.16", + "version": "0.1.17", "type": "module", "repository": "https://github.com/ambarltd/typescript-libs.git", "publishConfig": { diff --git a/task-explorer/Dockerfile b/task-explorer/Dockerfile index e56f75c..8196029 100644 --- a/task-explorer/Dockerfile +++ b/task-explorer/Dockerfile @@ -14,7 +14,11 @@ RUN : "${GITHUB_TOKEN:?Required build argument GITHUB_TOKEN not set}" COPY ./frontend/package.json ./package.json COPY ./.npmrc ./.npmrc -RUN --mount=type=cache,id=pnpm-store-${TARGETPLATFORM},target=/root/.local/share/pnpm/store pnpm install +# pnpm 10 ignores env-var auth in the repo .npmrc; use a literal token in ~/.npmrc (removed in-layer). +RUN --mount=type=cache,id=pnpm-store-${TARGETPLATFORM},target=/root/.local/share/pnpm/store \ + echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> ~/.npmrc && \ + pnpm install && \ + rm -f ~/.npmrc COPY ./frontend/src ./src COPY ./frontend/public ./public @@ -35,7 +39,11 @@ RUN : "${GITHUB_TOKEN:?Required build argument GITHUB_TOKEN not set}" COPY ./backend/package.json ./package.json COPY ./.npmrc ./.npmrc -RUN --mount=type=cache,id=pnpm-store-${TARGETPLATFORM},target=/root/.local/share/pnpm/store pnpm install +# pnpm 10 ignores env-var auth in the repo .npmrc; use a literal token in ~/.npmrc (removed in-layer). +RUN --mount=type=cache,id=pnpm-store-${TARGETPLATFORM},target=/root/.local/share/pnpm/store \ + echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> ~/.npmrc && \ + pnpm install && \ + rm -f ~/.npmrc COPY ./backend/src ./src COPY ./backend/tests ./tests