File tree Expand file tree Collapse file tree 8 files changed +5417
-4202
lines changed Expand file tree Collapse file tree 8 files changed +5417
-4202
lines changed Original file line number Diff line number Diff line change 8
8
ci :
9
9
name : Continuous integration
10
10
runs-on : ubuntu-latest
11
+
11
12
steps :
12
13
- name : Checkout
13
14
uses : actions/checkout@v4
15
+
16
+ - name : Setup pnpm
17
+ uses : pnpm/action-setup@v4
18
+ with :
19
+ run_install : false
20
+
14
21
- name : Setup Node
15
22
uses : actions/setup-node@v4
16
23
with :
17
- node-version : ' current'
24
+ node-version : 22
25
+ cache : " pnpm"
26
+
18
27
- name : Install dependencies
19
- run : yarn install
20
- - name : Check build
21
- run : yarn build
22
- - name : Check coding standards
23
- run : yarn lint
28
+ run : pnpm install --frozen-lockfile
29
+
30
+ - name : Build
31
+ run : pnpm build
32
+
33
+ - name : Lint
34
+ run : pnpm lint
35
+
24
36
- name : Run tests
25
- run : yarn test
37
+ run : pnpm test
Original file line number Diff line number Diff line change 4
4
workflow_dispatch : ~
5
5
push :
6
6
tags :
7
- - ' v* '
7
+ - " v* "
8
8
9
9
jobs :
10
10
release :
@@ -13,20 +13,31 @@ jobs:
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
+
17
+ - name : Setup pnpm
18
+ uses : pnpm/action-setup@v4
19
+ with :
20
+ run_install : false
21
+
16
22
- name : Setup Node
17
23
uses : actions/setup-node@v4
18
24
with :
19
- node-version : ' current'
20
- registry-url : https://registry.npmjs.org
25
+ node-version : 22
26
+ cache : " pnpm"
27
+
21
28
- 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
+
27
37
- name : Run tests
28
- run : yarn test
38
+ run : pnpm test
39
+
29
40
- name : Publish to npm
30
- run : npm publish
41
+ run : pnpm publish
31
42
env :
32
43
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
/lib /
2
2
/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/):
20
20
21
21
npm install @api-platform/api-doc-parser
22
22
23
+ Using [ Pnpm] ( https://pnpm.js.org/ ) :
24
+
25
+ pnpm add @api-platform/api-doc-parser
26
+
23
27
If you plan to use the library with Node, you also need a polyfill for the ` fetch ` function:
24
28
25
29
yarn add isomorphic-fetch
@@ -81,8 +85,8 @@ to include it in the library.
81
85
82
86
## Run tests
83
87
84
- yarn test
85
- yarn lint
88
+ pnpm test
89
+ pnpm lint
86
90
87
91
## Credits
88
92
Original file line number Diff line number Diff line change 51
51
"scripts" : {
52
52
"test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
53
53
"lint" : " eslint src" ,
54
- "fix" : " yarn lint --fix" ,
54
+ "fix" : " pnpm lint --fix" ,
55
55
"eslint-check" : " eslint-config-prettier src/index.ts" ,
56
56
"build" : " rm -rf lib/* && tsc" ,
57
57
"watch" : " tsc --watch"
60
60
"publishConfig" : {
61
61
"access" : " public"
62
62
},
63
- "packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e "
63
+ "packageManager" :
" [email protected] +sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977 "
64
64
}
You can’t perform that action at this time.
0 commit comments