mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-24 00:42:16 +00:00
ci: make use of pnpm store cache (#23)
This commit is contained in:
parent
e96ebeac80
commit
dd6a74f3f5
13
.drone.yml
13
.drone.yml
@ -6,11 +6,17 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
- name: test & build
|
- name: test & build
|
||||||
image: node:18.16.0-bullseye
|
image: node:18.16.0-bullseye
|
||||||
|
volumes:
|
||||||
|
- name: pnpm-store-cache
|
||||||
|
path: /drone/.pnpm-store
|
||||||
commands:
|
commands:
|
||||||
# - git config --global --add safe.directory "/drone/src"
|
# - git config --global --add safe.directory "/drone/src"
|
||||||
- npm install -g pnpm
|
- corepack enable # npm i -g pnpm
|
||||||
- pnpm i --frozen-lockfile
|
- pnpm i --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
|
environment:
|
||||||
|
npm_config_store_dir: /drone/.pnpm-store
|
||||||
|
npm_config_package_import_method: copy
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: node:18.16.0-bullseye
|
image: node:18.16.0-bullseye
|
||||||
@ -28,3 +34,8 @@ steps:
|
|||||||
- (cd dist && zip -r -9 ../um-react.zip .)
|
- (cd dist && zip -r -9 ../um-react.zip .)
|
||||||
- ./scripts/publish.sh
|
- ./scripts/publish.sh
|
||||||
- ./scripts/deploy.sh
|
- ./scripts/deploy.sh
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: pnpm-store-cache
|
||||||
|
host:
|
||||||
|
path: /tmp/.pnpm-store
|
||||||
|
Loading…
Reference in New Issue
Block a user