2024-09-24 21:31:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2025-02-23 17:15:22 +00:00
|
|
|
if [[ ! "$GITHUB_REF" =~ ^refs/tags/ ]]; then
|
2024-09-24 21:31:18 +00:00
|
|
|
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
|