Skip to content

Commit

Permalink
Update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 13, 2024
1 parent 2ebe052 commit 20d2aaa
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 102 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,19 @@ jobs:
# run: cargo publish

# GITHUB RELEASE
- uses: denoland/setup-deno@v1
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
with:
deno-version: v1.x
- name: Pre-release
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
run: |
# update config schema to have version
sed -i 's/ruff\/0.0.0/ruff\/${{ steps.get_tag_version.outputs.TAG_VERSION }}/' deployment/schema.json
# rename the wasm file
(cd target/wasm32-unknown-unknown/release/ && mv dprint_plugin_ruff.wasm plugin.wasm)
# create release notes
deno run -A ./scripts/generateReleaseNotes.ts ${{ steps.get_tag_version.outputs.TAG_VERSION
- name: Release
uses: softprops/action-gh-release@v1
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
Expand All @@ -99,19 +105,6 @@ jobs:
files: |
target/wasm32-unknown-unknown/release/plugin.wasm
deployment/schema.json
body: |
## Install
[Install](https://dprint.dev/install/) and [setup](https://dprint.dev/setup/) dprint.
Then in your project's directory with a dprint.json file, run:
```shellsession
dprint config add ruff
```
## JS Formatting API
* [JS Formatter](https://github.com/dprint/js-formatter) - Browser/Deno and Node
* [npm package](https://www.npmjs.com/package/@dprint/ruff)
body_path: ${{ github.workspace }}-CHANGELOG.txt
draft: false
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"imports": {
"automation": "https://raw.githubusercontent.com/dprint/automation/0.8.1/mod.ts",
"automation": "https://raw.githubusercontent.com/dprint/automation/0.9.0/mod.ts",
"automation/": "https://raw.githubusercontent.com/dprint/automation/0.9.0/",
"octokit": "npm:octokit@^3.1"
}
}
Loading

0 comments on commit 20d2aaa

Please sign in to comment.