diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 61fdb98..9a8474a 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -31,11 +31,14 @@ jobs: - name: Install dependencies run: npm install - - name: Move checked in index.js file to tmp directory + + - name: Move the committed index.js file run: mv dist/index.js /tmp - - name: Create new index.js file + + - name: Rebuild the index.js file run: npm run release - - name: Compare expected vs actual index.js file + + - name: Compare the expected and actual index.js files run: git diff --ignore-all-space dist/index.js /tmp/index.js id: diff