File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 43
43
path : dist
44
44
- run : git reset HEAD --hard
45
45
46
+ typings :
47
+ needs :
48
+ - build
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - name : Environment Information
52
+ run : npx envinfo
53
+ - name : Checkout
54
+ uses : actions/checkout@v3
55
+ - name : Setup node
56
+ id : node
57
+ uses : actions/setup-node@v3
58
+ with :
59
+ node-version : lts/hydrogen # 18
60
+ cache : ' npm'
61
+ - run : npm clean-install
62
+ - name : Load cached dist
63
+ uses : actions/cache@v3
64
+ id : dist
65
+ with :
66
+ path : dist
67
+ key : ${{ needs.build.outputs.cache-key }}
68
+ fail-on-cache-miss : true
69
+ - name : Check TypeScript type definitions
70
+ run : npm run test:types
71
+
46
72
node :
47
73
needs :
48
74
- build
@@ -269,6 +295,7 @@ jobs:
269
295
- edge-runtime
270
296
- electron
271
297
- node
298
+ - typings
272
299
- workers
273
300
runs-on : ubuntu-latest
274
301
if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository == 'panva/jose' }}
Original file line number Diff line number Diff line change 125
125
"types:find" : " find dist/types -name '*.d.ts' -type f -print0" ,
126
126
"runtime:node:copy" : " cp ./src/runtime/node/*.ts ./src/runtime" ,
127
127
"runtime:refs" : " run-s -s runtime:find | xargs -0 sed -i.bak -e \" s/'\\ .\\ .\\ //'\\ .\\ //g\" -e \" s/'\\ .\\ /\\ .\\ ./'../g\" && npm run-script sedcleanup" ,
128
- "test" : " ava && tsd -f test/types" ,
128
+ "test" : " ava" ,
129
+ "test:types" : " tsd -f test/types" ,
129
130
"format" : " prettier --loglevel silent --write ./test ./tap ./src ./tools ./cookbook" ,
130
131
"tap:browsers" : " ./tap/.browsers.sh" ,
131
132
"tap:bun" : " ./tap/.bun.sh" ,
You can’t perform that action at this time.
0 commit comments