From 2fc72f87e8f2aba323a9bdd0a74b4b6174e576c9 Mon Sep 17 00:00:00 2001
From: David Sherret <dsherret@gmail.com>
Date: Mon, 6 Jan 2025 18:49:04 -0500
Subject: [PATCH] chore: add back showing prettier version in release notes

---
 .github/workflows/ci.generate.ts | 8 +++++++-
 .github/workflows/ci.yml         | 4 ++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index ef2febb..57004b8 100644
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -247,6 +247,11 @@ const ci = {
           name: "Create plugin file",
           run: "deno run -A scripts/create_plugin_file.ts",
         },
+        {
+          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 tag version",
           id: "get_tag_version",
@@ -274,7 +279,8 @@ const ci = {
               // todo: add this
               // "deployment/schema.json",
             ].join("\n"),
-            body: `## Install
+            body: `Prettier \${{ steps.get_prettier_version.outputs.PRETTIER_VERSION }}
+## Install
 
 Dependencies:
 
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d5af912..393d4b4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -189,6 +189,9 @@ jobs:
           echo "dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip: ${{needs.build.outputs.ZIP_CHECKSUM_AARCH64_UNKNOWN_LINUX_GNU}}"
       - name: Create plugin file
         run: deno run -A scripts/create_plugin_file.ts
+      - 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 tag version
         id: get_tag_version
         run: 'echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT'
@@ -208,6 +211,7 @@ jobs:
             dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip
             plugin.json
           body: |
+            Prettier ${{ steps.get_prettier_version.outputs.PRETTIER_VERSION }}
             ## Install
 
             Dependencies: