diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 1dc7c06..9151c1a 100644 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -277,6 +277,11 @@ const ci = { run: "sed -i 's/exec\\/0.0.0/exec\\/${{ steps.get_tag_version.outputs.TAG_VERSION }}/' deployment/schema.json", }, + { + name: "Create release notes", + run: + "deno run -A ./scripts/generate_release_notes.ts ${{ steps.get_tag_version.outputs.TAG_VERSION }} ${{ steps.get_plugin_file_checksum.outputs.CHECKSUM }} > ${{ github.workspace }}-CHANGELOG.txt", + }, { name: "Release", uses: "softprops/action-gh-release@v1", @@ -287,25 +292,7 @@ const ci = { "plugin.json", "deployment/schema.json", ].join("\n"), - body: `## Install - -Dependencies: - -- Install dprint's CLI >= 0.40.0 - -In a dprint configuration file: - -1. Specify the plugin url and checksum in the \`"plugins"\` array or run \`dprint config add exec\`: - \`\`\`jsonc - { - // etc... - "plugins": [ - "https://plugins.dprint.dev/exec-\${{ steps.get_tag_version.outputs.TAG_VERSION }}.json@\${{ steps.get_plugin_file_checksum.outputs.CHECKSUM }}" - ] - } - \`\`\` -2. Follow the configuration setup instructions found at https://github.com/dprint/dprint-plugin-exec#configuration`, - draft: false, + "body_path": "${{ github.workspace }}-CHANGELOG.txt", }, }, ], diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23547c6..9c32e57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -267,6 +267,8 @@ jobs: run: 'echo "::set-output name=CHECKSUM::$(shasum -a 256 plugin.json | awk ''{print $1}'')"' - name: Update Config Schema Version run: 'sed -i ''s/exec\/0.0.0/exec\/${{ steps.get_tag_version.outputs.TAG_VERSION }}/'' deployment/schema.json' + - name: Create release notes + run: 'deno run -A ./scripts/generate_release_notes.ts ${{ steps.get_tag_version.outputs.TAG_VERSION }} ${{ steps.get_plugin_file_checksum.outputs.CHECKSUM }} > ${{ github.workspace }}-CHANGELOG.txt' - name: Release uses: softprops/action-gh-release@v1 env: @@ -283,23 +285,4 @@ jobs: dprint-plugin-exec-riscv64gc-unknown-linux-gnu.zip plugin.json deployment/schema.json - body: |- - ## Install - - Dependencies: - - - Install dprint's CLI >= 0.40.0 - - In a dprint configuration file: - - 1. Specify the plugin url and checksum in the `"plugins"` array or run `dprint config add exec`: - ```jsonc - { - // etc... - "plugins": [ - "https://plugins.dprint.dev/exec-${{ steps.get_tag_version.outputs.TAG_VERSION }}.json@${{ steps.get_plugin_file_checksum.outputs.CHECKSUM }}" - ] - } - ``` - 2. Follow the configuration setup instructions found at https://github.com/dprint/dprint-plugin-exec#configuration - draft: false + body_path: '${{ github.workspace }}-CHANGELOG.txt' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2eb564f..7b12a22 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: with: token: ${{ secrets.GH_DPRINTBOT_PAT }} - - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@v2 - uses: dtolnay/rust-toolchain@stable - name: Bump version and tag @@ -34,4 +34,4 @@ jobs: run: | git config user.email "${{ github.actor }}@users.noreply.github.com" git config user.name "${{ github.actor }}" - deno run -A https://raw.githubusercontent.com/dprint/automation/0.7.0/tasks/publish_release.ts --${{github.event.inputs.releaseKind}} + deno run -A https://raw.githubusercontent.com/dprint/automation/0.10.0/tasks/publish_release.ts --${{github.event.inputs.releaseKind}}