Skip to content

Commit 6a2ca0a

Browse files
committed
Revert "ci: no longer need to patch chromedriver in appveyor"
This reverts commit 96eac78.
1 parent 522a0f8 commit 6a2ca0a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ environment:
33

44
install:
55
- ps: Install-Product node $env:nodejs_version
6+
- yarn patch-chromedriver
67
- yarn --network-timeout 600000
78

89
test_script:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"release": "yarn --pure-lockfile && yarn clean && node scripts/release.js",
1717
"version": "node scripts/genChangelog.js && node scripts/genDocs.js && git add CHANGELOG.md && git add docs",
1818
"docs": "vuepress dev docs",
19-
"docs:build": "vuepress build docs"
19+
"docs:build": "vuepress build docs",
20+
"patch-chromedriver": "node scripts/patchChromedriver.js"
2021
},
2122
"gitHooks": {
2223
"pre-commit": "lint-staged",

scripts/patchChromedriver.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Appveyor current only ships Chrome 72
2+
// which is no longer supported by the latest version of Chromedriver.
3+
4+
const fs = require('fs')
5+
const path = require('path')
6+
const pkg = require('../package.json')
7+
8+
pkg.resolutions.chromedriver = '2.45.0'
9+
10+
fs.writeFileSync(path.resolve(__dirname, '../package.json'), JSON.stringify(pkg, null, 2))

0 commit comments

Comments
 (0)