From d132704fa3db2ee67c3c6d8941654ff6761f6ce0 Mon Sep 17 00:00:00 2001
From: Brian Cristante <33549821+brcrista@users.noreply.github.com>
Date: Thu, 24 Jun 2021 10:00:13 -0400
Subject: [PATCH] Update .github/workflows/check-dist.yml

Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
---
 .github/workflows/check-dist.yml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml
index b73a4e4..61fdb98 100644
--- a/.github/workflows/check-dist.yml
+++ b/.github/workflows/check-dist.yml
@@ -29,10 +29,14 @@ jobs:
         with:
           node-version: 12.x
 
-      - run: npm install
-      - run: mv dist/index.js /tmp
-      - run: npm run release
-      - run: git diff --ignore-all-space dist/index.js /tmp/index.js
+      - name: Install dependencies
+        run: npm install
+      - name: Move checked in index.js file to tmp directory
+        run: mv dist/index.js /tmp
+      - name: Create new index.js file
+        run: npm run release
+      - name: Compare expected vs actual index.js file
+        run: git diff --ignore-all-space dist/index.js /tmp/index.js
         id: diff
 
       # If index.js was different than expected, upload the expected version as an artifact