We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12d1eb3 commit c8f1667Copy full SHA for c8f1667
scripts/publish.ps1
@@ -1 +1,13 @@
1
-Write-Host '您好'
+param ($Cmd = $(throw "Command parameter is required."))
2
+
3
+if ($Cmd -eq "push") {
4
+ Write-Host "push..."
5
+} elseif (($Cmd -eq "pull") -or ($Cmd -eq "publish")) {
6
+ git pull origin main
7
+ pnpm lib:build
8
+ npm publish --registry https://registry.npmjs.org/
9
+ git checkout dev
10
+ git merge main
11
12
+ Write-Host " "
13
+}
0 commit comments