All checks were successful
Build and Publish / build (push) Successful in 51s
Reviewed-on: #8 Co-authored-by: 鲁树人 <lu.shuren@um-react.app> Co-committed-by: 鲁树人 <lu.shuren@um-react.app>
11 lines
267 B
Bash
Executable File
11 lines
267 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ ! "$GITHUB_REF" =~ ^refs/tags/ ]]; 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
|