From 4bec75ee33e08ae2403ee38e4f26c9d55a06129b Mon Sep 17 00:00:00 2001 From: Jerome Thayananthajothy Date: Tue, 3 Sep 2024 06:42:36 +0100 Subject: [PATCH] Update release CI config and build process --- .github/workflows/release.yml | 42 +---------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41a3185..6689936 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -210,46 +210,6 @@ jobs: VERSION=$(node -e "console.log(require('./package.json').version);") echo "VERSION=$VERSION" >> $GITHUB_ENV - - name: Get previous release tag - id: prev_release - uses: actions/github-script@v6 - with: - script: | - const { data: releases } = await github.repos.listReleases({ - owner: context.repo.owner, - repo: context.repo.repo, - }); - if (releases.length > 0) { - return releases[0].tag_name; - } else { - return null; - } - - - name: Get commits since last release - id: commits - uses: actions/github-script@v6 - with: - script: | - const previousTag = steps.prev_release.outputs.result; - let commits; - if (previousTag) { - const { data } = await github.repos.compareCommits({ - owner: context.repo.owner, - repo: context.repo.repo, - base: previousTag, - head: 'HEAD', - }); - commits = data.commits; - } else { - const { data } = await github.repos.listCommits({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: 'HEAD', - }); - commits = data; - } - return commits.map(commit => `- ${commit.commit.message} (${commit.sha})`).join('\n'); - - name: Create release id: create_release uses: actions/create-release@v1 @@ -259,7 +219,7 @@ jobs: tag_name: v${{ env.VERSION }} release_name: v${{ env.VERSION }} body: | - ${{ steps.commits.outputs.result }} + Changes in this Release draft: true prerelease: false