|
|
@ -36,6 +36,7 @@ jobs:
|
|
|
|
run: npm run build
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
|
|
|
|
- name: Compare the expected and actual dist/ directories
|
|
|
|
- name: Compare the expected and actual dist/ directories
|
|
|
|
|
|
|
|
id: diff
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
|
|
|
|
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
|
|
|
|
echo "Detected uncommitted changes after build. See status below:"
|
|
|
|
echo "Detected uncommitted changes after build. See status below:"
|
|
|
@ -44,7 +45,7 @@ jobs:
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# If dist/ was different than expected, upload the expected version as an artifact
|
|
|
|
# If dist/ was different than expected, upload the expected version as an artifact
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
|
|
|
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
name: dist
|
|
|
|