@@ -23,20 +23,20 @@ jobs:
2323 uses : actions/setup-node@v4
2424 with :
2525 node-version : ${{ inputs.node-version }}
26- cache : ' yarn '
26+ cache : ' npm '
2727
2828 - name : Cache dependencies
2929 uses : actions/cache@v3
3030 id : node-modules-cache
3131 with :
3232 path : ' **/node_modules'
33- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn. lock') }}
33+ key : ${{ runner.os }}-modules-${{ hashFiles('**/package- lock.json ') }}
3434 restore-keys : |
3535 ${{ runner.os }}-modules-
3636
3737 - name : Install dependencies
3838 if : steps.node-modules-cache.outputs.cache-hit != 'true'
39- run : yarn install
39+ run : npm ci
4040
4141 - name : Validate PR commits with commitlint
4242 run : npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
@@ -52,23 +52,23 @@ jobs:
5252 uses : actions/setup-node@v4
5353 with :
5454 node-version : ${{ inputs.node-version }}
55- cache : ' yarn '
55+ cache : ' npm '
5656
5757 - name : Cache dependencies
5858 uses : actions/cache@v3
5959 id : node-modules-cache
6060 with :
6161 path : ' **/node_modules'
62- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn. lock') }}
62+ key : ${{ runner.os }}-modules-${{ hashFiles('**/package- lock.json ') }}
6363 restore-keys : |
6464 ${{ runner.os }}-modules-
6565
6666 - name : Install dependencies
6767 if : steps.node-modules-cache.outputs.cache-hit != 'true'
68- run : yarn install
68+ run : npm ci
6969
7070 - name : Build
71- run : yarn build
71+ run : npm run build
7272
7373 lint :
7474 name : Run lint
@@ -81,23 +81,23 @@ jobs:
8181 uses : actions/setup-node@v4
8282 with :
8383 node-version : ${{ inputs.node-version }}
84- cache : ' yarn '
84+ cache : ' npm '
8585
8686 - name : Cache dependencies
8787 uses : actions/cache@v3
8888 id : node-modules-cache
8989 with :
9090 path : ' **/node_modules'
91- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn. lock') }}
91+ key : ${{ runner.os }}-modules-${{ hashFiles('**/package- lock.json ') }}
9292 restore-keys : |
9393 ${{ runner.os }}-modules-
9494
9595 - name : Install dependencies
9696 if : steps.node-modules-cache.outputs.cache-hit != 'true'
97- run : yarn install
97+ run : npm ci
9898
9999 - name : Lint
100- run : yarn lint
100+ run : npm run lint
101101
102102 test :
103103 name : Test
@@ -110,26 +110,26 @@ jobs:
110110 uses : actions/setup-node@v4
111111 with :
112112 node-version : ${{ inputs.node-version }}
113- cache : ' yarn '
113+ cache : ' npm '
114114
115115 - name : Cache dependencies
116116 uses : actions/cache@v3
117117 id : node-modules-cache
118118 with :
119119 path : ' **/node_modules'
120- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn. lock') }}
120+ key : ${{ runner.os }}-modules-${{ hashFiles('**/package- lock.json ') }}
121121 restore-keys : |
122122 ${{ runner.os }}-modules-
123123
124124 - name : Install dependencies
125125 if : steps.node-modules-cache.outputs.cache-hit != 'true'
126- run : yarn install
126+ run : npm ci
127127
128128 - name : Generate test SSL certificates
129- run : yarn generate-test-ssl
129+ run : npm run generate-test-ssl
130130
131131 - name : Test
132- run : yarn test
132+ run : npm test
133133 env :
134134 NODE_OPTIONS : ' --max-old-space-size=4096'
135135 MASTER_BITGO_EXPRESS_KEYPATH : ./test-ssl-key.pem
0 commit comments