From d0cb7d1fc7efa101adccd79c197646701a0a3154 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 25 Apr 2024 12:20:55 +0800 Subject: [PATCH] :wrench: Chore: update release workflow --- .auto-changelog/config.json | 3 --- .github/workflows/release.yml | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.auto-changelog/config.json b/.auto-changelog/config.json index 42f296b17..0b3619270 100644 --- a/.auto-changelog/config.json +++ b/.auto-changelog/config.json @@ -3,10 +3,7 @@ "template": ".auto-changelog/template.hbs", "handlebarsSetup": ".auto-changelog/setup.js", "sortCommits": "relevance", - "package": true, - "unreleased": true, "commitLimit": false, - "unreleasedOnly": true, "replaceText": { "#(\\d+)": "[#$1](https://github.com/hugo-fixit/FixIt/issues/$1)", "^(Feat|feat):": ":sparkles: Feat:", diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b4ee5905..37c98b752 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,8 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history for generating release notes - name: Setup Node.js uses: actions/setup-node@v4 @@ -33,7 +35,7 @@ jobs: - name: Install dependencies and generate release notes run: | npm install - npm run release + npm run release -- --starting-version ${{ github.ref_name }} - name: GitHub Release uses: softprops/action-gh-release@v2