safaridriver 0.0.1

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.
@@ -0,0 +1,62 @@
1
+ name: Manual NPM Publish
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ releaseType:
7
+ description: "Release type - major, minor or patch"
8
+ required: true
9
+ type: choice
10
+ default: "patch"
11
+ options:
12
+ - patch
13
+ - minor
14
+ - major
15
+ distTag:
16
+ description: 'NPM tag (e.g. use "next" to release a test version)'
17
+ required: true
18
+ default: 'latest'
19
+ preRelease:
20
+ description: If latest release was a pre-release (e.g. X.X.X-alpha.0) and you want to push another one, pick "yes"
21
+ required: true
22
+ type: choice
23
+ default: "no"
24
+ options:
25
+ - "yes"
26
+ - "no"
27
+
28
+ env:
29
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30
+
31
+ jobs:
32
+ release:
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - uses: actions/checkout@v2
36
+ with:
37
+ ref: 'main'
38
+ fetch-depth: 0
39
+ - uses: actions/setup-node@v1
40
+ with:
41
+ node-version: 18.x
42
+ - name: NPM Setup
43
+ run: |
44
+ npm set registry "https://registry.npmjs.org/"
45
+ npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
46
+ npm whoami
47
+ - name: Git Setup
48
+ run: |
49
+ git config --global user.email "bot@webdriver.io"
50
+ git config --global user.name "WebdriverIO Release Bot"
51
+ - name: Release
52
+ run: npx release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --npm.tag=${{github.event.inputs.distTag}}
53
+ env:
54
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
+ if: ${{ github.event.inputs.preRelease == 'no' }}
57
+ - name: Pre-Release
58
+ run: npx release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --preRelease=alpha --github.preRelease --npm.tag=next
59
+ env:
60
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62
+ if: ${{ github.event.inputs.preRelease == 'yes' }}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 WebdriverIO Community
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Safaridriver for Node.js
2
+
3
+ An NPM wrapper for handling the Safaridriver binary.
4
+
5
+ __Note:__ 🚧 this package is currently in development, come back later!
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "safaridriver",
3
+ "version": "0.0.1",
4
+ "description": "An NPM wrapper for handling the Safaridriver binary.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/webdriverio-community/node-safaridriver.git"
12
+ },
13
+ "keywords": [
14
+ "safari",
15
+ "safaridriver",
16
+ "webdriver",
17
+ "webdriverio",
18
+ "selenium"
19
+ ],
20
+ "author": "Christian Bromann <mail@bromann.dev>",
21
+ "license": "MIT",
22
+ "bugs": {
23
+ "url": "https://github.com/webdriverio-community/node-safaridriver/issues"
24
+ },
25
+ "homepage": "https://github.com/webdriverio-community/node-safaridriver#readme",
26
+ "devDependencies": {
27
+ "release-it": "^15.6.0"
28
+ }
29
+ }