From cd1342cd9a7bc4e638c2950741283505b7bfa89c Mon Sep 17 00:00:00 2001 From: ChronosXYZ Date: Thu, 19 Sep 2024 03:45:58 +0300 Subject: [PATCH] Use pnpm in drone CI --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5c41266..91f46dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,15 +11,17 @@ steps: archive_format: "gzip" cache_key: "volume" mount: - - "node_modules" + - ".pnpm-store" volumes: - name: cache path: /tmp/cache - name: build image: node:20-slim commands: - - npm install - - npm run build + - corepack enable + - pnpm config set store-dir .pnpm-store + - pnpm i + - pnpm run build - name: rsync image: drillster/drone-rsync settings: @@ -44,7 +46,7 @@ steps: backend: "filesystem" archive_format: "gzip" mount: - - "node_modules" + - ".pnpm-store" volumes: - name: cache path: /tmp/cache