Skip to content

[修改]1. 修改tag #4

[修改]1. 修改tag

[修改]1. 修改tag #4

Workflow file for this run

name: Publish Release
on:
push:
tags:
- '*'
# branches: [main]
#schedule:
# 定时任务,每天 UTC 时间 0 点运行
#- cron: "0 0 * * *"
#workflow_dispatch:
jobs:
tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # 为了 git pull --unshallow,我们需要获取所有的提交历史
- name: package.json info
id: info
uses: jaywcjlove/github-action-package@main
with:
version: ${{ github.ref_name }}
release: true
commit: '[修改]1. 更新版本号'
- run: echo "version - ${{ steps.info.outputs.version }}"
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
with:
head-ref: ${{steps.create_tag.outputs.version}}
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'