From cabebda7e2060db8caa6d099e27a8ddbf78a0d4a Mon Sep 17 00:00:00 2001 From: Kristof Kovacs <49001742+kristofbolyai@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:44:39 +0200 Subject: [PATCH] chore: Fix launchy release CI (#70) --- .github/workflows/publish-release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 9c64216..aa8c04d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -24,22 +24,30 @@ jobs: fetch-depth: 0 token: ${{ secrets.PRIVATE_TOKEN }} - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16 - - run: npm install conventional-changelog-conventionalcommits + - run: | + npm install conventional-changelog-conventionalcommits@7.0.2 + npm install conventional-recommended-bump@9.0.0 + + - name: Set up version.json + run: echo "{"version":$(git describe --tags --abbrev=0)}" > version.json - name: Create changelog id: changelog - uses: TriPSs/conventional-changelog-action@v3.17.0 + uses: TriPSs/conventional-changelog-action@v5.2.1 with: github-token: ${{ secrets.PRIVATE_TOKEN }} git-user-name: 'WynntilsBot' git-user-email: 'admin@wynntils.com' pre-commit: ./.github/.pre-commit.js config-file-path: ./.github/.config.js + version-file: ./version.json skip-version-file: true skip-git-pull: true + pre-release: false + release-count: 5 - name: Create release if: ${{ steps.changelog.outputs.skipped != 'true' }}