fix workflow for this repo

This commit is contained in:
Brian Cristante 2021-08-05 14:22:12 -04:00
parent 8134c0fbe6
commit e5d67eb6cc

View file

@ -33,18 +33,18 @@ jobs:
run: npm ci
- name: Move the committed index.js file
run: mv dist/index.js /tmp
run: mv dist/ /tmp/
- name: Rebuild the index.js file
run: npm run release
run: npm run build
- name: Compare the expected and actual index.js files
run: git diff --ignore-all-space dist/index.js /tmp/index.js
run: git diff --ignore-all-space dist/ /tmp/dist
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: index.js
path: dist/index.js
name: dist
path: dist/