@@ -16,37 +16,39 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20-
21- - name : Use Node.js
22- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
23- with :
24- node-version : ' lts/*'
25- check-latest : true
26- package-manager-cache : false
27-
28- - name : Install pnpm
29- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
30- with :
31- run_install : |
32- - recursive: true
33- args: [--no-frozen-lockfile]
34-
35- - name : Rebuild the dist/ directory
36- run : rm -rf dist && pnpm build && pnpm package
37-
38- - name : Compare the expected and actual dist/ directories
39- run : |
40- if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
41- echo "Detected uncommitted changes after build. See status below:"
42- git diff
43- exit 1
44- fi
45- id : diff
46-
47- # If index.js was different than expected, upload the expected version as an artifact
48- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
49- if : ${{ failure() && steps.diff.conclusion == 'failure' }}
50- with :
51- name : dist
52- path : dist/
19+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+ with :
21+ persist-credentials : false
22+
23+ - name : Use Node.js
24+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
25+ with :
26+ node-version : ' lts/*'
27+ check-latest : true
28+ package-manager-cache : false
29+
30+ - name : Install pnpm
31+ uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
32+ with :
33+ run_install : |
34+ - recursive: true
35+ args: [--no-frozen-lockfile]
36+
37+ - name : Rebuild the dist/ directory
38+ run : rm -rf dist && pnpm build && pnpm package
39+
40+ - name : Compare the expected and actual dist/ directories
41+ run : |
42+ if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
43+ echo "Detected uncommitted changes after build. See status below:"
44+ git diff
45+ exit 1
46+ fi
47+ id : diff
48+
49+ # If index.js was different than expected, upload the expected version as an artifact
50+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
51+ if : ${{ failure() && steps.diff.conclusion == 'failure' }}
52+ with :
53+ name : dist
54+ path : dist/
0 commit comments