File tree Expand file tree Collapse file tree 4 files changed +181
-372
lines changed
Expand file tree Collapse file tree 4 files changed +181
-372
lines changed Original file line number Diff line number Diff line change 1- ---
21name : Tests
3-
42on :
53 push :
64 branches : [main]
75 pull_request :
86 branches : [main]
9-
107jobs :
118 build :
12- strategy :
13- matrix :
14- node-version : [20, 22, 24, 25]
15- platform : [ubuntu-latest]
16-
17- runs-on : ${{ matrix.platform }}
18-
19- steps :
20- - uses : actions/checkout@v6
21- with :
22- submodules : true
23- - uses : pnpm/action-setup@v4
24- - name : Use Node.js ${{ matrix.node-version }}
25- uses : actions/setup-node@v6
26- with :
27- node-version : ${{ matrix.node-version }}
28- cache : ' pnpm'
29- - run : pnpm install
30- - name : Test ${{ matrix.node-version }}
31- run : npm run coverage
32- - name : Upload coverage reports to Codecov
33- uses : codecov/codecov-action@v5
34- with :
35- token : ${{ secrets.CODECOV_TOKEN }}
9+ uses : cto-af/workflows/.github/workflows/node-ci.yml@main
10+ secrets :
11+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,24 +2,9 @@ name: Publish Package to npmjs
22on :
33 release :
44 types : [published]
5-
65jobs :
7- build :
8- runs-on : ubuntu-latest
9- environment : publish
6+ publish :
7+ uses : cto-af/workflows/.github/workflows/publish.yml@main
108 permissions :
11- contents : read
9+ contents : write
1210 id-token : write
13- steps :
14- - uses : actions/checkout@v6
15- - uses : pnpm/action-setup@v4
16- - uses : actions/setup-node@v6
17- with :
18- node-version : 24
19- registry-url : ' https://registry.npmjs.org'
20- cache : pnpm
21- - run : pnpm i -r
22- - run : npm run test
23- - run : npm run lint
24- - run : npm pkg delete devDependencies scripts packageManager
25- - run : npm publish --access public --provenance
Original file line number Diff line number Diff line change 3535 "lint" : " eslint ." ,
3636 "coverage" : " c8 npm test" ,
3737 "nock" : " rm -f test/fixtures/wsd.test.js.json && NOCK_BACK_MODE=record npx ava --serial test/wsd.test.js" ,
38- "release " : " npm version patch && git push --follow-tags && npm publish "
38+ "build " : " npm run lint && npm run coverage "
3939 },
4040 "devDependencies" : {
4141 "@cto.af/eslint-config" : " ^6.2.5" ,
42- "@eslint/markdown" : " 7.5.1" ,
42+ "@eslint/markdown" : " ^ 7.5.1" ,
4343 "@stylistic/eslint-plugin" : " ^5.10.0" ,
44- "@types/node" : " ^25.3.5" ,
45- "eslint" : " 9.39.2" ,
46- "eslint-plugin-jsdoc" : " ^62.7.1" ,
47- "eslint-plugin-json" : " ^4.0.1" ,
48- "eslint-plugin-markdown" : " ^5.1.0" ,
49- "eslint-plugin-redos" : " ^4.5.0" ,
50- "nock" : " 14.0.11" ,
51- "superc8" : " 12.2.4" ,
44+ "@types/node" : " ^25.5.0" ,
45+ "eslint" : " ^9.39.2" ,
46+ "eslint-plugin-jsdoc" : " ^62.8.0" ,
47+ "nock" : " ^14.0.11" ,
48+ "superc8" : " ~12.3.1" ,
5249 "tmp-promise" : " ^3.0.3" ,
53- "typescript" : " 5.9.3"
50+ "typescript" : " ^ 5.9.3"
5451 },
5552 "dependencies" : {
5653 "yargs" : " ^18.0.0"
5754 },
58- "packageManager" : " pnpm@10.31.0 " ,
55+ "packageManager" : " pnpm@10.32.1 " ,
5956 "engines" : {
6057 "node" : " >=20"
6158 }
You can’t perform that action at this time.
0 commit comments