lib_um_crypto_rust/.drone.yml
鲁树人 2ad318b37f
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
ci: skip corepack auto pin, clean up
2024-09-24 22:21:58 +01:00

39 lines
726 B
YAML

kind: pipeline
type: docker
name: default
when:
event:
- push
- pull_request
- tag
steps:
- name: test
image: rust:1.81-bookworm
commands:
- cargo test --verbose --all
- name: build (wasm_pack)
image: rust:1.81-bookworm
commands:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- (cd um_wasm && wasm-pack build --release --target web --out-dir ../um_wasm_loader/pkg)
- name: build (node)
image: node:22.9-bookworm
environment:
NPM_TOKEN:
from_secret: NPM_TOKEN
COREPACK_ENABLE_AUTO_PIN: 0
BUILD_SKIP_WASM_PACK: 1
depends_on:
- "build (wasm_pack)"
commands:
- corepack enable
- cd um_wasm_loader
- pnpm i
- pnpm build
- ./ci_publish.sh