lib_um_crypto_rust/um_wasm_loader/ci_publish.sh

14 lines
269 B
Bash
Raw Normal View History

2024-09-24 21:01:29 +00:00
#!/bin/bash
2024-09-24 21:15:14 +00:00
echo 'git status:'
git status
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