diff --git a/blogPublish.sh b/blogPublish.sh index ac9e84835..b63a4dc5d 100644 --- a/blogPublish.sh +++ b/blogPublish.sh @@ -1,5 +1,7 @@ #!/bin/bash +nvm use 18 echo `date +'%Y/%m/%d %H:%M:%S'` echo "开始发布"; git fetch;pnpm run docs:build;git pull;pnpm run docs:build;git add .;pnpm run docs:build;git commit -m "发布博客,时间:`date +'%Y/%m/%d %H:%M:%S'`"; git push; -echo "发布完成"; \ No newline at end of file +echo "发布完成"; +nvm use 16 \ No newline at end of file