diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76b9b1b..578e1cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,11 +51,8 @@ jobs: - name: Install dependencies run: npm install - # Actions构建 - - name: Build-Dev - if: ${{ env.branch_type != 'master' }} - run: npm run release --tag=${{ env.version }} - - name: Build-Master + # 构建 + - name: Build if: ${{ env.branch_type == 'master' }} run: npm run release --tag=${{ env.version }} env: @@ -85,3 +82,12 @@ jobs: asset_path: ./dist/halo-theme-dream2.0-plus.zip asset_name: halo-theme-dream2.0-plus-V${{ env.version }}.zip asset_content_type: application/zip + + - name: npm ci + if: ${{ env.branch_type != 'master' }} + run: npm ci + - name: npm publish + if: ${{ env.branch_type != 'master' }} + run: npm publish --tag=latest + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/theme.yaml b/theme.yaml index edb27d2..862de3e 100644 --- a/theme.yaml +++ b/theme.yaml @@ -30,7 +30,7 @@ spec: settingName: theme-dream2-plus-setting configMapName: theme-dream2-plus-configMap # 版本号 - version: 1.3.6.beta1 + version: 1.3.6 # 最低支持的 Halo 版本 require: ">=2.20.0" # 许可