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 a809ab7350
Signed by: ChronosXYZ
GPG Key ID: 189BF50EBD342791

View File

@ -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