From 8b073cc65aff5d306b6406f11922de2d05e569c3 Mon Sep 17 00:00:00 2001 From: pipinet Date: Mon, 30 Sep 2024 10:06:37 +0800 Subject: [PATCH] chore: use pnpm --- Earthfile | 8 ++++---- package.json | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Earthfile b/Earthfile index 909924f..50606bc 100644 --- a/Earthfile +++ b/Earthfile @@ -1,6 +1,6 @@ VERSION 0.8 ARG --global BASE_IMAGE=earthly/dind:alpine -ARG --global NODE_IMAGE=node:20.17.0 +ARG --global NODE_IMAGE=node:20.17.0-alpine3.20 FROM ${BASE_IMAGE} WORKDIR /app @@ -19,19 +19,19 @@ build-base: .npmrc \ . RUN npm install -g pnpm@latest-9 --registry=https://registry.npmmirror.com - RUN pnpm fetch --dev + RUN pnpm fetch --frozen-lockfile --force --dev --registry=https://registry.npmmirror.com SAVE ARTIFACT node_modules AS LOCAL node_modules check: FROM +build-base COPY . . - RUN pnpm install -r --prefer-offline --dev + RUN pnpm install -r --frozen-lockfile --force --dev --registry=https://registry.npmmirror.com RUN pnpm run build:check release: FROM +build-base COPY . . - RUN pnpm install -r --prefer-offline --dev + RUN pnpm install -r --frozen-lockfile --force --dev --registry=https://registry.npmmirror.com RUN pnpm version ${APP_VERSION} --no-commit-hooks --no-git-tag-version --allow-same-version RUN pnpm run release diff --git a/package.json b/package.json index 3fe24ce..edc3bcc 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "bugs": { "url": "https://github.com/qwlabs/dorami/issues" }, + "packageManager": "pnpm@9.11.0", "engines": { "node": ">=20.17.0", "pnpm": ">=9"