Skip to content

Commit

Permalink
ci: modify the package publish shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
luohuidong committed Oct 21, 2023
1 parent e9f9979 commit 7ec2dde
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/publish-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ is_modify=$(git status --porcelain)
if [ ! -z "$is_modify" ]; then
echo "packages version changed"

pnpm install || utils::check_fail $? "pnpm install failed"

git config user.name "luohuidong"
git config user.email "[email protected]"
git add .
git commit -m "build: update packages version"

pnpm release || utils::check_fail $? "release failed"
pnpm build || utils::check_fail $? "pnpm build failed"
pnpm publish || utils::check_fail $? "pnpm publish failed"

git push || utils::check_fail $? "git push failed"
else
Expand Down

0 comments on commit 7ec2dde

Please sign in to comment.