File tree 5 files changed +79
-8
lines changed
5 files changed +79
-8
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - master
5
+
6
+ permissions :
7
+ contents : write
8
+ pull-requests : write
9
+ id-token : write
10
+
11
+ name : release
12
+ jobs :
13
+ release-please :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : google-github-actions/release-please-action@v3
17
+ id : release
18
+ with :
19
+ release-type : node
20
+ package-name : ${{vars.NPM_MODULE_NAME}}
21
+ pull-request-title-pattern : ' chore${scope}: release ${version} [skip-ci]'
22
+ # The logic below handles the npm publication:
23
+ - uses : actions/checkout@v4
24
+ # these if statements ensure that a publication only occurs when
25
+ # a new release is created:
26
+ if : ${{ steps.release.outputs.release_created }}
27
+ - uses : actions/setup-node@v4
28
+ with :
29
+ node-version : 20
30
+ registry-url : ' https://registry.npmjs.org'
31
+ if : ${{ steps.release.outputs.release_created }}
32
+ - run : npm ci
33
+ if : ${{ steps.release.outputs.release_created }}
34
+ - run : npm publish --provenance --access public
35
+ env :
36
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
37
+ if : ${{ steps.release.outputs.release_created }}
Original file line number Diff line number Diff line change
1
+ name : Run tests
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ test :
9
+ strategy :
10
+ matrix :
11
+ node : [16.x, 18.x, 20.x, 21.x]
12
+ os : [ubuntu-latest, windows-latest]
13
+ runs-on : ${{ matrix.os }}
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Use Node.js ${{ matrix.node }}
17
+ uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ${{ matrix.node }}
20
+ - run : npm install
21
+ - run : npm test
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ upgrade : true ,
3
+ reject : [
4
+ // only works as ESM
5
+ 'chai'
6
+ ]
7
+ } ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ // Root certificates from https://bimigroup.org/vmc-issuers/
4
+
3
5
const Path = require ( 'path' ) ;
4
6
const fs = require ( 'fs' ) . promises ;
5
7
const { parsePemBundle } = require ( './lib/tools' ) ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"test" : " eslint \" lib/**/*.js\" \" test/**/*.js\" && mocha --recursive \" ./test/**/*.js\" --reporter spec" ,
8
8
"root-store" : " node build-root-store.js" ,
9
- "prepublish" : " npm run root-store || true"
9
+ "update" : " rm -rf node_modules package-lock.json && ncu -u && npm install && npm run root-store"
10
+ },
11
+ "repository" : {
12
+ "type" : " git" ,
13
+ "url" : " git+https://github.com/postalsys/vmc.git"
10
14
},
11
15
"keywords" : [
12
16
" VMC"
13
17
],
14
18
"author" : " Postal Systems OÜ" ,
15
19
"license" : " MIT" ,
16
20
"dependencies" : {
17
- "@peculiar/asn1-schema" : " 2.3.0 " ,
18
- "@peculiar/asn1-x509" : " 2.3.0 " ,
19
- "@peculiar/asn1-x509-logotype" : " 2.3.0 "
21
+ "@peculiar/asn1-schema" : " 2.3.8 " ,
22
+ "@peculiar/asn1-x509" : " 2.3.8 " ,
23
+ "@peculiar/asn1-x509-logotype" : " 2.3.8 "
20
24
},
21
25
"devDependencies" : {
22
- "chai" : " 4.3.6 " ,
23
- "eslint" : " 8.22 .0" ,
26
+ "chai" : " 4.4.1 " ,
27
+ "eslint" : " 8.56 .0" ,
24
28
"eslint-config-nodemailer" : " 1.2.0" ,
25
- "eslint-config-prettier" : " 8.5 .0" ,
26
- "mocha" : " 10.0 .0"
29
+ "eslint-config-prettier" : " 9.1 .0" ,
30
+ "mocha" : " 10.2 .0"
27
31
}
28
32
}
You can’t perform that action at this time.
0 commit comments