lib_um_crypto_rust/um_wasm_loader/ci_publish.sh

11 lines
238 B
Bash
Raw Normal View History

2024-09-24 21:01:29 +00:00
#!/bin/bash
2024-09-24 21:04:45 +00:00
if [[ -z "${DRONE_TAG}" ]]; then
2024-09-24 21:05:11 +00:00
echo "skip package publish, pack only."
pnpm pack
2024-09-24 21:04:45 +00:00
exit 0
fi
2024-09-24 21:01:29 +00:00
echo '//git.unlock-music.dev/api/packages/um/npm/:_authToken=${NPM_TOKEN}' > $HOME/.npmrc
pnpm publish --access=public