Commit 664ce00 1 parent 359a70e commit 664ce00 Copy full SHA for 664ce00
File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : check dist/
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ paths-ignore :
8
+ - ' **.md'
9
+ pull_request :
10
+ paths-ignore :
11
+ - ' **.md'
12
+ workflow_dispatch :
13
+
14
+ jobs :
15
+ check-dist :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+
20
+ - name : Setup Node.js 16.x
21
+ uses : actions/setup-node@v3
22
+ with :
23
+ node-version : 16.x
24
+ cache : npm
25
+
26
+ - name : Install dependencies
27
+ run : npm ci
28
+
29
+ - name : Rebuild the dist/ directory
30
+ run : npm run prepare
31
+
32
+ - name : Compare the expected and actual dist/ directories
33
+ run : |
34
+ if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
35
+ echo "Detected uncommitted changes after build. See status below:"
36
+ git diff
37
+ exit 1
38
+ fi
39
+ id : diff
40
+
41
+ - uses : actions/upload-artifact@v3
42
+ if : ${{ failure() && steps.diff.conclusion == 'failure' }}
43
+ with :
44
+ name : dist
45
+ path : dist/
You can’t perform that action at this time.
0 commit comments