File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ name: Node.js CI
3
3
on : [push]
4
4
5
5
jobs :
6
+ lint :
7
+ runs-on : ubuntu-latest
8
+ timeout-minutes : 10
9
+ strategy :
10
+ matrix :
11
+ node-version : [16.x]
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Use Node.js ${{ matrix.node-version }}
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : ${{ matrix.node-version }}
18
+ - run : npm install
19
+ - name : Run eslint
20
+ run : npm run lint
6
21
test-node :
7
22
runs-on : ubuntu-latest
8
23
timeout-minutes : 10
42
57
run : npm run test-karma
43
58
env :
44
59
BUNDLER : ${{ matrix.bundler }}
45
- lint :
60
+ build :
46
61
runs-on : ubuntu-latest
47
62
timeout-minutes : 10
48
63
strategy :
55
70
with :
56
71
node-version : ${{ matrix.node-version }}
57
72
- run : npm install
58
- - name : Run eslint
59
- run : npm run lint
73
+ - name : Run build
74
+ run : npm run build
60
75
coverage :
61
76
needs : [test-node, test-karma]
62
77
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 10
10
causes the included ` node ` ` documentLoader ` to not function and tests to
11
11
fail. If you wish to still use earlier Node.js versions, you may still be
12
12
able to do so with your own custom ` documentLoader ` .
13
+ - ** BREAKING** : ` npm ` ` prepublish ` script changed to ` prepack ` . The ` dist/ `
14
+ contents will not be generated by default for development installs. Run `npm
15
+ run build` if needed. This was done to avoid extra work only needed for
16
+ packing and publication, and for temporary ` webpack ` version issues. A new CI
17
+ ` build ` test has been added to check builds pass. The ` prepack ` script could
18
+ be ` prepare ` instead if use cases exist where that is needed. File an issue
19
+ if this is a concern.
13
20
- Update to ` @digitalbazaar/http-client@3 ` :
14
21
- Pulls in newer ` ky ` and ` ky-universal ` that should address security alerts
15
22
and provide other improvements.
Original file line number Diff line number Diff line change 89
89
" jsonld"
90
90
],
91
91
"scripts" : {
92
- "prepublish " : " npm run build" ,
92
+ "prepack " : " npm run build" ,
93
93
"build" : " npm run build-webpack" ,
94
94
"build-webpack" : " webpack" ,
95
95
"fetch-test-suites" : " npm run fetch-json-ld-wg-test-suite && npm run fetch-json-ld-org-test-suite && npm run fetch-normalization-test-suite" ,
You can’t perform that action at this time.
0 commit comments