We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9862478 commit 3ce21f0Copy full SHA for 3ce21f0
.github/workflows/build.yml
@@ -101,6 +101,22 @@ jobs:
101
run: |
102
npm run build
103
104
+ - name: Compare the expected and actual dist/ directories
105
+ id: diff
106
+ run: |
107
+ if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
108
+ echo "Detected uncommitted changes after build. See status below:"
109
+ git diff
110
+ exit 1
111
+ fi
112
+
113
+ # If dist/ was different than expected, upload the expected version as an artifact
114
+ - uses: actions/upload-artifact@v2
115
+ if: ${{ failure() && steps.diff.conclusion == 'failure' }}
116
+ with:
117
+ name: dist
118
+ path: dist/
119
120
npm-lint:
121
name: Lint the code
122
runs-on: ubuntu-latest
0 commit comments