This commit is contained in:
j m 2024-12-29 09:22:26 +08:00
parent 24a5fcc635
commit e80527ef1d
2 changed files with 12 additions and 6 deletions

View File

@ -51,11 +51,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install
# Actions构建 # 构建
- name: Build-Dev - name: Build
if: ${{ env.branch_type != 'master' }}
run: npm run release --tag=${{ env.version }}
- name: Build-Master
if: ${{ env.branch_type == 'master' }} if: ${{ env.branch_type == 'master' }}
run: npm run release --tag=${{ env.version }} run: npm run release --tag=${{ env.version }}
env: env:
@ -85,3 +82,12 @@ jobs:
asset_path: ./dist/halo-theme-dream2.0-plus.zip asset_path: ./dist/halo-theme-dream2.0-plus.zip
asset_name: halo-theme-dream2.0-plus-V${{ env.version }}.zip asset_name: halo-theme-dream2.0-plus-V${{ env.version }}.zip
asset_content_type: application/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}}

View File

@ -30,7 +30,7 @@ spec:
settingName: theme-dream2-plus-setting settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap configMapName: theme-dream2-plus-configMap
# 版本号 # 版本号
version: 1.3.6.beta1 version: 1.3.6
# 最低支持的 Halo 版本 # 最低支持的 Halo 版本
require: ">=2.20.0" require: ">=2.20.0"
# 许可 # 许可