17
17
- uses : actions/setup-node@v3
18
18
with :
19
19
node-version : ' lts/*'
20
- cache : yarn
21
- - run : yarn install --frozen-lockfile
22
- - run : yarn run eslint
20
+ cache : npm
21
+ - run : npm ci
22
+ - run : npm run eslint
23
23
24
24
prettier :
25
25
name : Prettier
29
29
- uses : actions/setup-node@v3
30
30
with :
31
31
node-version : ' lts/*'
32
- cache : yarn
33
- - run : yarn install --frozen-lockfile
34
- - run : yarn run prettier
32
+ cache : npm
33
+ - run : npm ci
34
+ - run : npm run prettier
35
35
36
36
test :
37
37
name : Jest w/ react@${{ matrix.react.react-version }} @line/liff@${{ matrix.liff-sdk.sdk-version }}
@@ -56,29 +56,29 @@ jobs:
56
56
- uses : actions/setup-node@v3
57
57
with :
58
58
node-version : ' lts/*'
59
- cache : yarn
60
- - run : yarn install --frozen-lockfile
59
+ cache : npm
60
+ - run : npm ci
61
61
- name : Reinstall specific version of react.js
62
62
run : |
63
- yarn add -D \
63
+ npm i \
64
64
react@${{ matrix.react.react-version }} \
65
65
react-dom@${{ matrix.react.react-version }} \
66
66
@types/react@${{ matrix.react.react-version }}
67
67
- name : Reinstall specific version of @line/liff SDK
68
- run : yarn add -D @line/liff@${{ matrix.liff-sdk.sdk-version }}
68
+ run : npm i @line/liff@${{ matrix.liff-sdk.sdk-version }}
69
69
70
- - name : yarn run test && report coverage
70
+ - name : npm run test && report coverage
71
71
72
72
env :
73
73
CC_TEST_REPORTER_ID : de17efec54641dd4eb561f1b0bdede12f7e310f921137eb3465771b63cbbe2f0
74
74
with :
75
- coverageCommand : yarn test:ci
75
+ coverageCommand : npm run test:ci
76
76
coverageLocations : |
77
77
${{ github.workspace }}/coverage/lcov.info:lcov
78
78
debug : true
79
79
80
80
- name : Reset local changes
81
- run : git checkout . && yarn
81
+ run : git checkout . && npm ci
82
82
83
83
build :
84
84
needs : test
@@ -89,10 +89,10 @@ jobs:
89
89
- uses : actions/setup-node@v3
90
90
with :
91
91
node-version : ' lts/*'
92
- cache : yarn
93
- - run : yarn install --frozen-lockfile
92
+ cache : npm
93
+ - run : npm ci
94
94
95
- - run : yarn run build
95
+ - run : npm run build
96
96
- name : Upload the result of build react-liff
97
97
uses : actions/upload-artifact@v3
98
98
with :
@@ -111,12 +111,11 @@ jobs:
111
111
- uses : actions/setup-node@v3
112
112
with :
113
113
node-version : ' lts/*'
114
- cache : yarn
114
+ cache : npm
115
115
- name : Download the result of build react-liff
116
116
uses : actions/download-artifact@v3
117
117
with :
118
118
name : dist
119
119
path : dist
120
120
121
- - run : yarn install
122
- - run : yarn run build
121
+ - run : npm i && npm run build
0 commit comments