From 053c614d21d1fb48448b43051e7da7cf689b9fc2 Mon Sep 17 00:00:00 2001 From: Ashley Smith Date: Thu, 30 Jan 2025 10:53:48 -0700 Subject: [PATCH] added changelog before release --- .github/workflows/publish-package-to-npmjs.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish-package-to-npmjs.yml b/.github/workflows/publish-package-to-npmjs.yml index abf5062..62e45da 100644 --- a/.github/workflows/publish-package-to-npmjs.yml +++ b/.github/workflows/publish-package-to-npmjs.yml @@ -72,10 +72,21 @@ jobs: needs: [incrementVersionNumber, build] runs-on: ubuntu-latest steps: + - name: Build Changelog + id: github_release_changelog + uses: mikepenz/release-changelog-builder-action@v4 + with: + toTag: v${{ inputs.new_version }} + configurationJson: | + { + "template": "#{{CHANGELOG}}\n## Installation\n```\ndocker pull ${{ inputs.tags }}\n```\n\n## Image reference to deploy: \n```\n${{ inputs.image_tag }}\n```\n\n## Changelog\n#{{UNCATEGORIZED}}", + "pr_template": " - #{{TITLE}} - ( PR: ##{{NUMBER}} )" + } - name: Create Release Notes uses: softprops/action-gh-release@v2 with: name: v${{ inputs.new_version }} + body: ${{ steps.github_release_changelog.outputs.changelog }} draft: true publish-package: if: inputs.publish_to_npm