Skip to content

Commit

Permalink
ci: add diff changelog + release setup
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyfigaro committed Mar 24, 2024
1 parent 9e99878 commit e20a6fd
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e20a6fd

Please sign in to comment.