Преглед изворни кода

Update cerate-stdf workflow

杜府 пре 3 година
родитељ
комит
fd7b45c081
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      .github/workflows/publish-create.yml

+ 4 - 0
.github/workflows/publish-create.yml

@@ -34,10 +34,14 @@ jobs:
                   sed -i '10a\        "stdf": "^${{ steps.version.outputs.version }}",' packages/create-stdf/templates/vite-tailwind/package.json
 
             # cd packages/create-stdf 目录下
+            # 安装依赖 npm install
+            # 打包 npm run build
             # 发布 create-stdf 到 npm
             - name: Publish
               run: |
                   cd packages/create-stdf
+                  npm install
+                  npm run build 
                   npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
                   npm publish
               env: