Browse Source

ci: fix publish command

LongYinan 4 years ago
parent
commit
e903e1ec28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/CI.yaml

+ 1 - 1
.github/workflows/CI.yaml

@@ -575,7 +575,7 @@ jobs:
           then
             echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
             npm publish --access public
-          else if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
+          elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
           then
             echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
             npm publish --tag next --access public