File tree Expand file tree Collapse file tree 8 files changed +5414
-4201
lines changed
Expand file tree Collapse file tree 8 files changed +5414
-4201
lines changed Original file line number Diff line number Diff line change 88 ci :
99 name : Continuous integration
1010 runs-on : ubuntu-latest
11+
1112 steps :
1213 - name : Checkout
1314 uses : actions/checkout@v4
1415 - name : Setup Node
1516 uses : actions/setup-node@v4
1617 with :
17- node-version : ' current'
18+ node-version : 22
19+ cache : " pnpm"
20+
21+ - uses : pnpm/action-setup@v4
22+ with :
23+ run_install : false
24+
1825 - name : Install dependencies
19- run : yarn install
20- - name : Check build
21- run : yarn build
22- - name : Check coding standards
23- run : yarn lint
26+ run : pnpm install --frozen-lockfile
27+
28+ - name : Build
29+ run : pnpm build
30+
31+ - name : Lint
32+ run : pnpm lint
33+
2434 - name : Run tests
25- run : yarn test
35+ run : pnpm test
Original file line number Diff line number Diff line change 44 workflow_dispatch : ~
55 push :
66 tags :
7- - ' v* '
7+ - " v* "
88
99jobs :
1010 release :
@@ -13,20 +13,31 @@ jobs:
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v4
16+
1617 - name : Setup Node
1718 uses : actions/setup-node@v4
1819 with :
19- node-version : ' current '
20+ node-version : 22
2021 registry-url : https://registry.npmjs.org
22+ cache : " pnpm"
23+
24+ - uses : pnpm/action-setup@v4
25+ with :
26+ run_install : false
27+
2128 - name : Install dependencies
22- run : yarn install
23- - name : Check build
24- run : yarn build
25- - name : Check coding standards
26- run : yarn lint
29+ run : pnpm install --frozen-lockfile
30+
31+ - name : Build
32+ run : pnpm build
33+
34+ - name : Lint
35+ run : pnpm lint
36+
2737 - name : Run tests
28- run : yarn test
38+ run : pnpm test
39+
2940 - name : Publish to npm
30- run : npm publish
41+ run : pnpm publish
3142 env :
3243 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11/lib /
22/node_modules /
3- /yarn-error.log
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ Using [NPM](https://www.npmjs.com/):
2020
2121 npm install @api-platform/api-doc-parser
2222
23+ Using [ Pnpm] ( https://pnpm.js.org/ ) :
24+
25+ pnpm add @api-platform/api-doc-parser
26+
2327If you plan to use the library with Node, you also need a polyfill for the ` fetch ` function:
2428
2529 yarn add isomorphic-fetch
@@ -81,8 +85,8 @@ to include it in the library.
8185
8286## Run tests
8387
84- yarn test
85- yarn lint
88+ pnpm test
89+ pnpm lint
8690
8791## Credits
8892
Original file line number Diff line number Diff line change 5151 "scripts" : {
5252 "test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
5353 "lint" : " eslint src" ,
54- "fix" : " yarn lint --fix" ,
54+ "fix" : " pnpm lint --fix" ,
5555 "eslint-check" : " eslint-config-prettier src/index.ts" ,
5656 "build" : " rm -rf lib/* && tsc" ,
5757 "watch" : " tsc --watch"
6060 "publishConfig" : {
6161 "access" : " public"
6262 },
63- "packageManager" : " yarn@1.22.22 +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e "
63+ "packageManager" : " pnpm@10.11.0 +sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977 "
6464}
You can’t perform that action at this time.
0 commit comments