File tree Expand file tree Collapse file tree 2 files changed +26
-14
lines changed Expand file tree Collapse file tree 2 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ jobs:
40
40
- name : Install Node.js
41
41
uses : actions/setup-node@v3
42
42
43
- - name : Install NPM dependencies
44
- run : npm install
43
+ - name : Install yarn
44
+ run : npm install --global yarn
45
+
46
+ - name : Install dependencies
47
+ run : yarn install
45
48
46
49
- name : Run eslint
47
- run : npm run lint:eslint
50
+ run : yarn lint:eslint
48
51
49
52
- name : Run prettier
50
- run : npm run lint:prettier
53
+ run : yarn lint:prettier
51
54
52
55
test :
53
56
name : test
@@ -75,20 +78,23 @@ jobs:
75
78
with :
76
79
node-version : 20.0
77
80
78
- - name : Install NPM dependencies
79
- run : npm install
81
+ - name : Install yarn
82
+ run : npm install --global yarn
83
+
84
+ - name : Install dependencies
85
+ run : yarn install
80
86
81
87
- name : Build the WebAssembly + JavaScript binding
82
- run : npm run build
88
+ run : yarn build
83
89
84
90
- name : Check typescript types
85
- run : npm run lint:types
91
+ run : yarn lint:types
86
92
87
93
- name : Test the JavaScript binding
88
- run : npm run test
94
+ run : yarn test
89
95
90
96
- name : Build the documentation
91
- run : npm run doc
97
+ run : yarn doc
92
98
93
99
docs :
94
100
name : docs
@@ -121,10 +127,13 @@ jobs:
121
127
with :
122
128
save-if : ${{ github.ref == 'refs/heads/main' }}
123
129
130
+ - name : Install yarn
131
+ run : npm install --global yarn
132
+
124
133
- name : Build `matrix-sdk-crypto-js` doc
125
134
run : |
126
- npm install
127
- npm run build && npm run doc
135
+ yarn install
136
+ yarn build && yarn doc
128
137
129
138
- name : Upload artifact
130
139
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
Original file line number Diff line number Diff line change 39
39
with :
40
40
node-version : 20.0
41
41
42
- - name : Install NPM dependencies
43
- run : npm install
42
+ - name : Install yarn
43
+ run : npm install --global yarn
44
+
45
+ - name : Install dependencies
46
+ run : yarn install
44
47
45
48
- name : Publish the WebAssembly + JavaScript binding (imply building + testing)
46
49
uses : JS-DevTools/npm-publish@v1
You can’t perform that action at this time.
0 commit comments