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