浏览代码

ci: fix publish command

LongYinan 4 年之前
父节点
当前提交
e903e1ec28
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/CI.yaml

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

@@ -575,7 +575,7 @@ jobs:
           then
           then
             echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
             echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
             npm publish --access public
             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
           then
             echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
             echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
             npm publish --tag next --access public
             npm publish --tag next --access public