Skip to content

Commit

Permalink
chore: add prettier version to release notes automatically (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Jan 5, 2025
1 parent d8350cb commit 54c82da
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ jobs:
- name: Get tag version
id: get_tag_version
run: 'echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT'
- name: Get prettier version
id: get_prettier_version
run: "echo PRETTIER_VERSION=$(deno run --allow-read scripts/output_prettier_version.ts) >> $GITHUB_OUTPUT"
- name: Get plugin file checksum
id: get_plugin_file_checksum
run: 'echo "CHECKSUM=$(shasum -a 256 plugin.json | awk ''{print $1}'')" >> $GITHUB_OUTPUT'
Expand Down
12 changes: 6 additions & 6 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"**/target"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.4.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.2.wasm",
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0",
"https://plugins.dprint.dev/prettier-0.46.1.json@e5bd083088a8dfc6e5ce2d3c9bee81489b065bd5345ef55b59f5d96627928b7a",
"https://plugins.dprint.dev/toml-0.6.2.wasm"
"https://plugins.dprint.dev/typescript-0.93.3.wasm",
"https://plugins.dprint.dev/json-0.19.4.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf",
"https://plugins.dprint.dev/prettier-0.52.1.json@53aeb0ec21d868dd53dcd081b5ea9e9c0dd02ffbc2d1a35c8e66b854d826b4e4",
"https://plugins.dprint.dev/toml-0.6.4.wasm"
]
}
5 changes: 5 additions & 0 deletions scripts/output_prettier_version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import $ from "dax";

const rootDir = $.path(import.meta.dirname!).parentOrThrow();
const packageJson = rootDir.join("js/node/package.json").readJsonSync<{ dependencies: Record<string, string> }>();
console.log(packageJson.dependencies["prettier"].replace("^", ""));

0 comments on commit 54c82da

Please sign in to comment.