From e20a6fd468c5bc19e306f8e2192df615a9af775a Mon Sep 17 00:00:00 2001 From: Joey Figaro Date: Sun, 24 Mar 2024 17:24:50 -0400 Subject: [PATCH] ci: add diff changelog + release setup --- .github/workflows/release.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 027467c..51d0ac6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,25 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-node@v3 + # - uses: actions/setup-node@v3 + # with: + # node-version: 16.x + + - name: Changelog + uses: scottbrenner/generate-changelog-action@master + id: Changelog with: - node-version: 16.x + package-dir: "./package.json" - - run: npx changelogithub + - name: Create Release + id: create_release + uses: actions/create-release@latest env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + ${{ steps.Changelog.outputs.changelog }} + draft: false + prerelease: false