From a809ab73505f89e124bdad8c597696b23858ce62 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 | 61 +++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5c41266..ef64095 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,24 +2,29 @@ kind: pipeline name: default steps: - - name: restore-cache - image: meltwater/drone-cache:dev - settings: - pull: true - backend: "filesystem" - restore: true - archive_format: "gzip" - cache_key: "volume" - mount: - - "node_modules" - volumes: - - name: cache - path: /tmp/cache + # - name: restore-cache + # image: meltwater/drone-cache:dev + # settings: + # pull: true + # backend: "filesystem" + # restore: true + # archive_format: "gzip" + # cache_key: "volume" + # mount: + # - "node_modules" + # volumes: + # - name: cache + # path: /tmp/cache - name: build image: node:20-slim + volumes: + - name: cache + path: /drone/src/.pnpm-store 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: @@ -35,19 +40,19 @@ steps: from_secret: rsync_key args: - --delete - - name: rebuild-cache - image: meltwater/drone-cache - settings: - pull: true - rebuild: true - cache_key: "volume" - backend: "filesystem" - archive_format: "gzip" - mount: - - "node_modules" - volumes: - - name: cache - path: /tmp/cache + # - name: rebuild-cache + # image: meltwater/drone-cache + # settings: + # pull: true + # rebuild: true + # cache_key: "volume" + # backend: "filesystem" + # archive_format: "gzip" + # mount: + # - "node_modules" + # volumes: + # - name: cache + # path: /tmp/cache volumes: - name: cache