File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 37
37
node-version : ${{ matrix.node-version }}
38
38
cache : " npm"
39
39
40
- - name : Use latest NPM
41
- run : sudo npm i -g npm
42
-
43
40
- name : Install dependencies
44
41
run : npm ci
45
42
@@ -76,21 +73,13 @@ jobs:
76
73
node-version : ${{ matrix.node-version }}
77
74
cache : " npm"
78
75
79
- - name : Use latest NPM on ubuntu/macos
80
- if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
81
- run : sudo npm i -g npm
82
-
83
- - name : Use latest NPM on windows
84
- if : matrix.os == 'windows-latest'
85
- run : npm i -g npm
86
-
87
- - name : Use latest NPM on windows
88
- if : matrix.webpack-version == 4
89
- run : sed -i'.original' 's/"build:types"/"_unused"/g' package.json
90
-
91
76
- name : Install dependencies
92
77
run : npm ci
93
78
79
+ - name : Update package.json for webpack@4
80
+ if : matrix.webpack-version == '4'
81
+ run : echo "`jq '.scripts.build="npm run build:client"' package.json`" > package.json
82
+
94
83
- name : Install webpack ${{ matrix.webpack-version }}
95
84
if : matrix.webpack-version == '4'
96
85
run : npm i webpack@${{ matrix.webpack-version }} --save-dev --ignore-scripts
You can’t perform that action at this time.
0 commit comments