ci: move publish logic to sh file
This commit is contained in:
parent
6eda801b1c
commit
00eb6ac46e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user