CI: Build and publish #7

Merged
lsr merged 14 commits from temp/ci-work into main 2024-09-24 21:31:21 +00:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 00eb6ac46e - Show all commits

View File

@ -28,9 +28,4 @@ steps:
- pnpm i
- BUILD_SKIP_WASM_PACK=1 pnpm build
- pnpm pack
- |
if [ -n "${DRONE_TAG}" ]; then
./ci_publish.sh
else
echo "skip package publish"
fi
- ./ci_publish.sh

View File

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