lib_um_crypto_rust/um_wasm_loader/ci_publish.sh
鲁树人 cd57e88666
All checks were successful
continuous-integration/drone/push Build is passing
CI: Build and publish (#7)
Reviewed-on: #7
Co-authored-by: 鲁树人 <lu.shuren@um-react.app>
Co-committed-by: 鲁树人 <lu.shuren@um-react.app>
2024-09-24 21:31:18 +00:00

11 lines
254 B
Bash
Executable File

#!/bin/bash
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 --no-git-checks