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
33on : [push]
44
55jobs :
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
621 test-node :
722 runs-on : ubuntu-latest
823 timeout-minutes : 10
4257 run : npm run test-karma
4358 env :
4459 BUNDLER : ${{ matrix.bundler }}
45- lint :
60+ build :
4661 runs-on : ubuntu-latest
4762 timeout-minutes : 10
4863 strategy :
5570 with :
5671 node-version : ${{ matrix.node-version }}
5772 - run : npm install
58- - name : Run eslint
59- run : npm run lint
73+ - name : Run build
74+ run : npm run build
6075 coverage :
6176 needs : [test-node, test-karma]
6277 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1010 causes the included ` node ` ` documentLoader ` to not function and tests to
1111 fail. If you wish to still use earlier Node.js versions, you may still be
1212 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.
1320- Update to ` @digitalbazaar/http-client@3 ` :
1421 - Pulls in newer ` ky ` and ` ky-universal ` that should address security alerts
1522 and provide other improvements.
Original file line number Diff line number Diff line change 8989 " jsonld"
9090 ],
9191 "scripts" : {
92- "prepublish " : " npm run build" ,
92+ "prepack " : " npm run build" ,
9393 "build" : " npm run build-webpack" ,
9494 "build-webpack" : " webpack" ,
9595 "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