1111 uses : actions/checkout@v2
1212
1313 - name : Setup Node.js
14- uses : actions/setup-node@v1
14+ uses : actions/setup-node@v2
1515 with :
1616 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
1717
5555 exit 1
5656 fi
5757
58+ checkPackageLock :
59+ name : Check health of package-lock.json file
60+ runs-on : ubuntu-latest
61+ steps :
62+ - name : Checkout repo
63+ uses : actions/checkout@v2
64+
65+ - name : Setup Node.js
66+ uses : actions/setup-node@v2
67+ with :
68+ node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
69+
70+ - name : Run npm install
71+ run : npm install --package-lock-only --engine-strict --strict-peer-deps
72+
73+ - name : Check that package-lock.json is in sync with package.json
74+ run : git diff --exit-code package-lock.json
75+
5876 integrationTests :
5977 name : Run integration tests
6078 runs-on : ubuntu-latest
6381 uses : actions/checkout@v2
6482
6583 - name : Setup Node.js
66- uses : actions/setup-node@v1
84+ uses : actions/setup-node@v2
6785 with :
6886 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
6987
83101 uses : actions/checkout@v2
84102
85103 - name : Setup Node.js
86- uses : actions/setup-node@v1
104+ uses : actions/setup-node@v2
87105 with :
88106 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
89107
@@ -109,7 +127,7 @@ jobs:
109127 uses : actions/checkout@v2
110128
111129 - name : Setup Node.js
112- uses : actions/setup-node@v1
130+ uses : actions/setup-node@v2
113131 with :
114132 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
115133
@@ -145,7 +163,7 @@ jobs:
145163 uses : actions/checkout@v2
146164
147165 - name : Setup Node.js v${{ matrix.node_version_to_setup }}
148- uses : actions/setup-node@v1
166+ uses : actions/setup-node@v2
149167 with :
150168 node-version : ${{ matrix.node_version_to_setup }}
151169
@@ -173,7 +191,7 @@ jobs:
173191 fetch-depth : 2
174192
175193 - name : Setup Node.js
176- uses : actions/setup-node@v1
194+ uses : actions/setup-node@v2
177195 with :
178196 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
179197
@@ -191,6 +209,30 @@ jobs:
191209 - name : Run Benchmark
192210 run : ' npm run benchmark -- --revs HEAD HEAD~1'
193211
212+ diff-npm-package :
213+ name : Diff content of NPM package
214+ runs-on : ubuntu-latest
215+ steps :
216+ - name : Checkout repo
217+ uses : actions/checkout@v2
218+ with :
219+ fetch-depth : 2
220+
221+ - name : Setup Node.js
222+ uses : actions/setup-node@v2
223+ with :
224+ node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
225+
226+ - name : Generate report
227+ run : ' node resources/diff-npm-package.js ${{ github.event.pull_request.base.sha }} HEAD'
228+
229+ - name : Upload generated report
230+ uses : actions/upload-artifact@v2
231+ with :
232+ name : npm-dist-diff.html
233+ path : ./npm-dist-diff.html
234+ if-no-files-found : ignore
235+
194236 deploy-to-npm-branch :
195237 name : Deploy to `npm` branch
196238 runs-on : ubuntu-latest
@@ -204,7 +246,7 @@ jobs:
204246 uses : actions/checkout@v2
205247
206248 - name : Setup Node.js
207- uses : actions/setup-node@v1
249+ uses : actions/setup-node@v2
208250 with :
209251 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
210252
@@ -240,7 +282,7 @@ jobs:
240282 uses : actions/checkout@v2
241283
242284 - name : Setup Node.js
243- uses : actions/setup-node@v1
285+ uses : actions/setup-node@v2
244286 with :
245287 node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
246288
0 commit comments