Skip to content

Commit

Permalink
Update check-lib.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zijchen committed Dec 7, 2023
1 parent b6b9a77 commit cb9ae87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/check-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit cb9ae87

Please sign in to comment.