electron-chromedriver 25.4.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -1
- package/.circleci/config.yml +0 -157
- package/.github/CODEOWNERS +0 -2
- package/.github/workflows/release.yml +0 -40
- package/.github/workflows/semantic.yml +0 -26
- package/script/publish.js +0 -10
- package/script/update-version.js +0 -37
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electron-chromedriver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.0",
|
|
4
4
|
"description": "Electron ChromeDriver",
|
|
5
5
|
"repository": "https://github.com/electron/chromedriver",
|
|
6
6
|
"bin": {
|
|
7
7
|
"chromedriver": "./chromedriver.js"
|
|
8
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"./chromedriver.js",
|
|
11
|
+
"./download-chromedriver.js"
|
|
12
|
+
],
|
|
9
13
|
"scripts": {
|
|
10
14
|
"install": "node ./download-chromedriver.js",
|
|
11
15
|
"lint": "standard --fix",
|
package/.circleci/config.yml
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
version: 2.1
|
|
2
|
-
|
|
3
|
-
orbs:
|
|
4
|
-
node: circleci/node@5.1.0
|
|
5
|
-
win: circleci/windows@5.0.0
|
|
6
|
-
|
|
7
|
-
commands:
|
|
8
|
-
install:
|
|
9
|
-
parameters:
|
|
10
|
-
node-version:
|
|
11
|
-
description: Node.js version to install
|
|
12
|
-
type: string
|
|
13
|
-
steps:
|
|
14
|
-
- node/install:
|
|
15
|
-
node-version: << parameters.node-version >>
|
|
16
|
-
- run: nvm use << parameters.node-version >>
|
|
17
|
-
- checkout
|
|
18
|
-
- restore_cache:
|
|
19
|
-
keys:
|
|
20
|
-
- v1-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
|
|
21
|
-
- v1-dependencies-{{ arch }}
|
|
22
|
-
- when:
|
|
23
|
-
condition: << pipeline.git.tag >>
|
|
24
|
-
steps:
|
|
25
|
-
- run:
|
|
26
|
-
name: Update Version
|
|
27
|
-
command: node script/update-version.js << pipeline.git.tag >>
|
|
28
|
-
- run: npm install
|
|
29
|
-
- unless:
|
|
30
|
-
condition: << pipeline.git.tag >>
|
|
31
|
-
steps:
|
|
32
|
-
- run:
|
|
33
|
-
command: npm install
|
|
34
|
-
environment:
|
|
35
|
-
ELECTRON_CHROMEDRIVER_STABLE_FALLBACK: 1
|
|
36
|
-
- save_cache:
|
|
37
|
-
paths:
|
|
38
|
-
- node_modules
|
|
39
|
-
key: v1-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
|
|
40
|
-
test:
|
|
41
|
-
steps:
|
|
42
|
-
- run: node --version
|
|
43
|
-
- run: npm --version
|
|
44
|
-
- run: npm test
|
|
45
|
-
|
|
46
|
-
jobs:
|
|
47
|
-
test-linux:
|
|
48
|
-
docker:
|
|
49
|
-
- image: cimg/base:stable
|
|
50
|
-
parameters:
|
|
51
|
-
node-version:
|
|
52
|
-
description: Node.js version to install
|
|
53
|
-
type: string
|
|
54
|
-
steps:
|
|
55
|
-
- install:
|
|
56
|
-
node-version: << parameters.node-version >>
|
|
57
|
-
- test
|
|
58
|
-
test-mac:
|
|
59
|
-
macos:
|
|
60
|
-
xcode: "14.0.0"
|
|
61
|
-
parameters:
|
|
62
|
-
node-version:
|
|
63
|
-
description: Node.js version to install
|
|
64
|
-
type: string
|
|
65
|
-
steps:
|
|
66
|
-
- install:
|
|
67
|
-
node-version: << parameters.node-version >>
|
|
68
|
-
- test
|
|
69
|
-
test-windows:
|
|
70
|
-
executor:
|
|
71
|
-
name: win/default
|
|
72
|
-
shell: bash.exe
|
|
73
|
-
parameters:
|
|
74
|
-
node-version:
|
|
75
|
-
description: Node.js version to install
|
|
76
|
-
type: string
|
|
77
|
-
steps:
|
|
78
|
-
- install:
|
|
79
|
-
node-version: << parameters.node-version >>
|
|
80
|
-
- test
|
|
81
|
-
release:
|
|
82
|
-
docker:
|
|
83
|
-
- image: cimg/node:18.14
|
|
84
|
-
steps:
|
|
85
|
-
- checkout
|
|
86
|
-
- run:
|
|
87
|
-
name: Update Version
|
|
88
|
-
command: node script/update-version.js << pipeline.git.tag >>
|
|
89
|
-
- run:
|
|
90
|
-
name: Install Dependencies
|
|
91
|
-
command: npm ci
|
|
92
|
-
- run:
|
|
93
|
-
name: Obtain Publishing Credentials
|
|
94
|
-
command: npx @continuous-auth/circleci-oidc-github-auth@1.0.4
|
|
95
|
-
- run:
|
|
96
|
-
name: Confirm Version Updated
|
|
97
|
-
command: node -e "if (require('./package.json').version === '0.0.0-development') process.exit(1)"
|
|
98
|
-
- run:
|
|
99
|
-
name: Set NPM Credentials
|
|
100
|
-
command: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > ~/.npmrc
|
|
101
|
-
- run:
|
|
102
|
-
name: Check NPM Credentials
|
|
103
|
-
command: npm whoami
|
|
104
|
-
- run:
|
|
105
|
-
name: CFA Publish
|
|
106
|
-
command: node script/publish.js
|
|
107
|
-
|
|
108
|
-
workflows:
|
|
109
|
-
test_and_release:
|
|
110
|
-
jobs:
|
|
111
|
-
- test-linux:
|
|
112
|
-
matrix:
|
|
113
|
-
parameters:
|
|
114
|
-
node-version:
|
|
115
|
-
- 18.14.0
|
|
116
|
-
- 16.19.0
|
|
117
|
-
- 14.19.0
|
|
118
|
-
filters:
|
|
119
|
-
tags:
|
|
120
|
-
only: /.*/
|
|
121
|
-
- test-mac:
|
|
122
|
-
matrix:
|
|
123
|
-
parameters:
|
|
124
|
-
node-version:
|
|
125
|
-
- 18.14.0
|
|
126
|
-
- 16.19.0
|
|
127
|
-
- 14.19.0
|
|
128
|
-
filters:
|
|
129
|
-
tags:
|
|
130
|
-
only: /.*/
|
|
131
|
-
- test-windows:
|
|
132
|
-
matrix:
|
|
133
|
-
parameters:
|
|
134
|
-
node-version:
|
|
135
|
-
- 18.14.0
|
|
136
|
-
- 16.19.0
|
|
137
|
-
- 14.19.0
|
|
138
|
-
filters:
|
|
139
|
-
tags:
|
|
140
|
-
only: /.*/
|
|
141
|
-
- release:
|
|
142
|
-
requires:
|
|
143
|
-
- test-linux-18.14.0
|
|
144
|
-
- test-linux-16.19.0
|
|
145
|
-
- test-linux-14.19.0
|
|
146
|
-
- test-mac-18.14.0
|
|
147
|
-
- test-mac-16.19.0
|
|
148
|
-
- test-mac-14.19.0
|
|
149
|
-
- test-windows-18.14.0
|
|
150
|
-
- test-windows-16.19.0
|
|
151
|
-
- test-windows-14.19.0
|
|
152
|
-
filters:
|
|
153
|
-
tags:
|
|
154
|
-
only: /^v.*/
|
|
155
|
-
branches:
|
|
156
|
-
ignore: /.*/
|
|
157
|
-
context: cfa-release
|
package/.github/CODEOWNERS
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: Release For New Electron Version
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
version:
|
|
7
|
-
description: 'version'
|
|
8
|
-
required: true
|
|
9
|
-
|
|
10
|
-
env:
|
|
11
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
smoke_test:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0
|
|
18
|
-
- name: Setup Node.js
|
|
19
|
-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0
|
|
20
|
-
with:
|
|
21
|
-
node-version: "16.19.0"
|
|
22
|
-
- name: Update Version
|
|
23
|
-
run: node script/update-version.js ${{ github.event.inputs.version }}
|
|
24
|
-
- name: Install Dependencies
|
|
25
|
-
run: npm i
|
|
26
|
-
- name: Run Tests
|
|
27
|
-
run: npm test
|
|
28
|
-
create_new_version:
|
|
29
|
-
runs-on: ubuntu-latest
|
|
30
|
-
needs: smoke_test
|
|
31
|
-
steps:
|
|
32
|
-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0
|
|
33
|
-
# Tag here, the CircleCI workflow will trigger on the new tag and do the CFA publish
|
|
34
|
-
- name: Push New Tag
|
|
35
|
-
run: |
|
|
36
|
-
git tag ${{ github.event.inputs.version }}
|
|
37
|
-
git push origin ${{ github.event.inputs.version }}
|
|
38
|
-
- name: Create Release
|
|
39
|
-
run: |
|
|
40
|
-
gh release create ${{ github.event.inputs.version }} -t ${{ github.event.inputs.version }}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: "Check Semantic Commit"
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request_target:
|
|
5
|
-
types:
|
|
6
|
-
- opened
|
|
7
|
-
- edited
|
|
8
|
-
- synchronize
|
|
9
|
-
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
main:
|
|
15
|
-
permissions:
|
|
16
|
-
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
|
|
17
|
-
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
|
|
18
|
-
name: Validate PR Title
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
steps:
|
|
21
|
-
- name: semantic-pull-request
|
|
22
|
-
uses: amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb # tag: v5
|
|
23
|
-
env:
|
|
24
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
25
|
-
with:
|
|
26
|
-
validateSingleCommit: false
|
package/script/publish.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Publish the package in the CWD with an OTP code from CFA
|
|
2
|
-
const { getOtp } = require('@continuous-auth/client')
|
|
3
|
-
const { spawnSync } = require('child_process')
|
|
4
|
-
|
|
5
|
-
async function publish () {
|
|
6
|
-
const { status } = spawnSync('npm', ['publish', '--otp', await getOtp()])
|
|
7
|
-
process.exit(status)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
publish()
|
package/script/update-version.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const { promises: fs } = require('fs')
|
|
2
|
-
const path = require('path')
|
|
3
|
-
|
|
4
|
-
const versionFormat = /^(\d+\.)(\d+\.)(\d+)$/
|
|
5
|
-
|
|
6
|
-
const normalizeVersion = (version = '') => {
|
|
7
|
-
return version.startsWith('v') ? version.slice(1) : version
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
async function updateVersion () {
|
|
11
|
-
const version = normalizeVersion(process.argv[2])
|
|
12
|
-
if (!versionFormat.test(version)) {
|
|
13
|
-
console.error(`Unsupported version ${version} - only major, minor, and patch releases are currently supported`)
|
|
14
|
-
return
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const PJ_PATH = path.join(__dirname, '..', 'package.json')
|
|
18
|
-
const pj = require(PJ_PATH)
|
|
19
|
-
|
|
20
|
-
const PJLOCK_PATH = path.join(__dirname, '..', 'package-lock.json')
|
|
21
|
-
const pjLock = require(PJLOCK_PATH)
|
|
22
|
-
|
|
23
|
-
try {
|
|
24
|
-
pj.version = version
|
|
25
|
-
await fs.writeFile(PJ_PATH, JSON.stringify(pj, null, 2))
|
|
26
|
-
console.log(`Updated package.json version to ${version}`)
|
|
27
|
-
|
|
28
|
-
pjLock.version = version
|
|
29
|
-
await fs.writeFile(PJLOCK_PATH, JSON.stringify(pjLock, null, 2))
|
|
30
|
-
console.log(`Updated package-lock.json version to ${version}`)
|
|
31
|
-
} catch (e) {
|
|
32
|
-
console.error('Failed to update chromedriver version: ', e)
|
|
33
|
-
process.exit(1)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
updateVersion()
|