-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: modify the package publish shell script
- Loading branch information
1 parent
e9f9979
commit 7ec2dde
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|