lib_um_crypto_rust/um_wasm_loader/ci_publish.sh
鲁树人 086232b9e2
All checks were successful
continuous-integration/drone/push Build is passing
ci: show git diff
2024-09-24 22:17:05 +01:00

15 lines
278 B
Bash
Executable File

#!/bin/bash
echo 'git status:'
git status
git diff
if [[ -z "${DRONE_TAG}" ]]; then
echo "skip package publish, pack only."
pnpm pack
exit 0
fi
echo '//git.unlock-music.dev/api/packages/um/npm/:_authToken=${NPM_TOKEN}' > $HOME/.npmrc
pnpm publish --access=public