Use pnpm in drone CI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ChronosXYZ 2024-09-19 03:45:58 +03:00
parent 7f4bbb9f76
commit 128fdb60ef
Signed by: ChronosXYZ
GPG Key ID: 189BF50EBD342791

View File

@ -2,24 +2,29 @@ kind: pipeline
name: default name: default
steps: steps:
- name: restore-cache # - name: restore-cache
image: meltwater/drone-cache:dev # image: meltwater/drone-cache:dev
settings: # settings:
pull: true # pull: true
backend: "filesystem" # backend: "filesystem"
restore: true # restore: true
archive_format: "gzip" # archive_format: "gzip"
cache_key: "volume" # cache_key: "volume"
mount: # mount:
- "node_modules" # - "node_modules"
volumes: # volumes:
- name: cache # - name: cache
path: /tmp/cache # path: /tmp/cache
- name: build - name: build
image: node:20-slim image: node:20-slim
volumes:
- name: cache
path: /drone/src/.pnpm-store
commands: commands:
- npm install - corepack enable
- npm run build - pnpm config set store-dir .pnpm-store
- pnpm i
- pnpm run build
- name: rsync - name: rsync
image: drillster/drone-rsync image: drillster/drone-rsync
settings: settings:
@ -35,21 +40,21 @@ steps:
from_secret: rsync_key from_secret: rsync_key
args: args:
- --delete - --delete
- name: rebuild-cache # - name: rebuild-cache
image: meltwater/drone-cache # image: meltwater/drone-cache
settings: # settings:
pull: true # pull: true
rebuild: true # rebuild: true
cache_key: "volume" # cache_key: "volume"
backend: "filesystem" # backend: "filesystem"
archive_format: "gzip" # archive_format: "gzip"
mount: # mount:
- "node_modules" # - "node_modules"
volumes: # volumes:
- name: cache # - name: cache
path: /tmp/cache # path: /tmp/cache
volumes: volumes:
- name: cache - name: cache
host: host:
path: /srv/drone/cache path: /srv/drone/cache/personal-website