|
|
@ -29,10 +29,14 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
node-version: 12.x
|
|
|
|
|
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- name: Install dependencies
|
|
|
|
- run: mv dist/index.js /tmp
|
|
|
|
run: npm install
|
|
|
|
- run: npm run release
|
|
|
|
- name: Move checked in index.js file to tmp directory
|
|
|
|
- run: git diff --ignore-all-space dist/index.js /tmp/index.js
|
|
|
|
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
|
|
|
|
id: diff
|
|
|
|
|
|
|
|
|
|
|
|
# If index.js was different than expected, upload the expected version as an artifact
|
|
|
|
# If index.js was different than expected, upload the expected version as an artifact
|
|
|
|