File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,6 +277,11 @@ const ci = {
277277 run :
278278 "sed -i 's/exec\\/0.0.0/exec\\/${{ steps.get_tag_version.outputs.TAG_VERSION }}/' deployment/schema.json" ,
279279 } ,
280+ {
281+ name : "Create release notes" ,
282+ run :
283+ "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" ,
284+ } ,
280285 {
281286 name : "Release" ,
282287 uses : "softprops/action-gh-release@v1" ,
@@ -287,25 +292,7 @@ const ci = {
287292 "plugin.json" ,
288293 "deployment/schema.json" ,
289294 ] . join ( "\n" ) ,
290- body : `## Install
291-
292- Dependencies:
293-
294- - Install dprint's CLI >= 0.40.0
295-
296- In a dprint configuration file:
297-
298- 1. Specify the plugin url and checksum in the \`"plugins"\` array or run \`dprint config add exec\`:
299- \`\`\`jsonc
300- {
301- // etc...
302- "plugins": [
303- "https://plugins.dprint.dev/exec-\${{ steps.get_tag_version.outputs.TAG_VERSION }}.json@\${{ steps.get_plugin_file_checksum.outputs.CHECKSUM }}"
304- ]
305- }
306- \`\`\`
307- 2. Follow the configuration setup instructions found at https://github.com/dprint/dprint-plugin-exec#configuration` ,
308- draft : false ,
295+ "body_path" : "${{ github.workspace }}-CHANGELOG.txt" ,
309296 } ,
310297 } ,
311298 ] ,
Original file line number Diff line number Diff line change @@ -267,6 +267,8 @@ jobs:
267267 run : ' echo "::set-output name=CHECKSUM::$(shasum -a 256 plugin.json | awk '' {print $1}'' )"'
268268 - name : Update Config Schema Version
269269 run : ' sed -i '' s/exec\/0.0.0/exec\/${{ steps.get_tag_version.outputs.TAG_VERSION }}/'' deployment/schema.json'
270+ - name : Create release notes
271+ 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'
270272 - name : Release
271273 uses : softprops/action-gh-release@v1
272274 env :
@@ -283,23 +285,4 @@ jobs:
283285 dprint-plugin-exec-riscv64gc-unknown-linux-gnu.zip
284286 plugin.json
285287 deployment/schema.json
286- body : |-
287- ## Install
288-
289- Dependencies:
290-
291- - Install dprint's CLI >= 0.40.0
292-
293- In a dprint configuration file:
294-
295- 1. Specify the plugin url and checksum in the `"plugins"` array or run `dprint config add exec`:
296- ```jsonc
297- {
298- // etc...
299- "plugins": [
300- "https://plugins.dprint.dev/exec-${{ steps.get_tag_version.outputs.TAG_VERSION }}.json@${{ steps.get_plugin_file_checksum.outputs.CHECKSUM }}"
301- ]
302- }
303- ```
304- 2. Follow the configuration setup instructions found at https://github.com/dprint/dprint-plugin-exec#configuration
305- draft : false
288+ body_path : ' ${{ github.workspace }}-CHANGELOG.txt'
Original file line number Diff line number Diff line change 2424 with :
2525 token : ${{ secrets.GH_DPRINTBOT_PAT }}
2626
27- - uses : denoland/setup-deno@v1
27+ - uses : denoland/setup-deno@v2
2828 - uses : dtolnay/rust-toolchain@stable
2929
3030 - name : Bump version and tag
3434 run : |
3535 git config user.email "${{ github.actor }}@users.noreply.github.com"
3636 git config user.name "${{ github.actor }}"
37- deno run -A https://raw.githubusercontent.com/dprint/automation/0.7 .0/tasks/publish_release.ts --${{github.event.inputs.releaseKind}}
37+ deno run -A https://raw.githubusercontent.com/dprint/automation/0.10 .0/tasks/publish_release.ts --${{github.event.inputs.releaseKind}}
You can’t perform that action at this time.
0 commit comments