From cb9ae87edbe717ffe986b0770dec9ff2753a9682 Mon Sep 17 00:00:00 2001 From: Zi Chen Date: Thu, 7 Dec 2023 09:37:01 -0800 Subject: [PATCH] Update check-lib.yml --- .github/workflows/check-lib.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-lib.yml b/.github/workflows/check-lib.yml index c86ef4ff..5f90bbe7 100644 --- a/.github/workflows/check-lib.yml +++ b/.github/workflows/check-lib.yml @@ -9,6 +9,12 @@ jobs: - name: Check out uses: actions/checkout@v3 + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: npm + - name: Copy the committed main.js file run: mv lib/main.js /tmp @@ -18,7 +24,7 @@ jobs: npm run build - name: Check if main.js has differences - run: git diff --ignore-all-space --exit-code lib/main.js /tmp/main.js + run: git diff --ignore-all-space --exit-code --name-only lib/main.js /tmp/main.js id: diff # If main.js was different than expected, upload the actual version