input-duration 2.2.10 → 2.2.12
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/.github/workflows/VandR.yml +1 -0
- package/.github/workflows/commitToBSEndToEnd.yml +51 -0
- package/.github/workflows/devVersionAndRelease.yml +42 -0
- package/.github/workflows/manualTriggersEcho0.yml +1 -1
- package/.github/workflows/npm-bump.yml +47 -0
- package/README.md +9 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -43,3 +43,4 @@ jobs:
|
|
|
43
43
|
github_token: ${{ secrets.PAT_KEY }} # built in actions token. Passed tp gh-release if in use.
|
|
44
44
|
npm_token: ${{ secrets.NPM_TOKEN }} # user set secret token generated at npm
|
|
45
45
|
- run: echo ${{ steps.npm-bump.outputs.release_tag }}
|
|
46
|
+
- run: echo ${{ github.event.inputs.newversion }}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# triggered on commit to rep
|
|
2
|
+
# triggers specific workflow in curl enpoint (that workflow needs workflow_disptach)
|
|
3
|
+
|
|
4
|
+
name: CommitToBSEndToEnd
|
|
5
|
+
|
|
6
|
+
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
|
7
|
+
# or API.
|
|
8
|
+
on: push
|
|
9
|
+
|
|
10
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
11
|
+
jobs:
|
|
12
|
+
bump-pub:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
- uses: actions/setup-node@v3
|
|
17
|
+
with:
|
|
18
|
+
node-version: 16
|
|
19
|
+
registry-url: https://registry.npmjs.org/
|
|
20
|
+
- run: npm ci
|
|
21
|
+
|
|
22
|
+
# bumps minor version
|
|
23
|
+
- run: echo "Token ${{ secrets.GITHUB_TOKEN }}"
|
|
24
|
+
- run: echo "Repo ${{ github.repository }}"
|
|
25
|
+
- run: echo "Head ${{ github.head_ref }}"
|
|
26
|
+
- run: npm version patch
|
|
27
|
+
- run: git push "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
|
|
28
|
+
|
|
29
|
+
# publishes with credentials
|
|
30
|
+
- run: npm publish
|
|
31
|
+
env:
|
|
32
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
trigger-BStest:
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
|
|
41
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
42
|
+
- name: Trigger Tests
|
|
43
|
+
|
|
44
|
+
run: |
|
|
45
|
+
curl -L \
|
|
46
|
+
-X POST \
|
|
47
|
+
-H "Accept: application/vnd.github+json" \
|
|
48
|
+
-u "StephanLuis:${{secrets.PAT_KEY}}" \
|
|
49
|
+
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
50
|
+
https://api.github.com/repos/StephanLuis/BrowserStackSelenium/actions/workflows/78546395/dispatches \
|
|
51
|
+
-d '{"ref":"main"}'
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Dev Version and Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
|
|
6
|
+
env:
|
|
7
|
+
node_version: lts/*
|
|
8
|
+
new_version: patch
|
|
9
|
+
|
|
10
|
+
concurrency: # prevent concurrent releases
|
|
11
|
+
group: npm-bump
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
version_and_release:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
outputs:
|
|
18
|
+
tagName: ${{ steps.npm-bump.outputs.release_tag }}
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v3
|
|
21
|
+
with:
|
|
22
|
+
# fetch full history so things like auto-changelog work properly
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
- name: Use Node.js ${{ env.node_version }}
|
|
25
|
+
uses: actions/setup-node@v3
|
|
26
|
+
with:
|
|
27
|
+
node-version: ${{ env.node_version }}
|
|
28
|
+
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
|
29
|
+
registry-url: 'https://registry.npmjs.org'
|
|
30
|
+
- run: npm i
|
|
31
|
+
- run: npm test
|
|
32
|
+
- name: Version and publish to npm
|
|
33
|
+
id: npm-bump
|
|
34
|
+
uses: bcomnes/npm-bump@v2
|
|
35
|
+
with:
|
|
36
|
+
git_email: bcomnes@gmail.com
|
|
37
|
+
git_username: ${{ github.actor }}
|
|
38
|
+
newversion: ${{ env.new_version }}
|
|
39
|
+
push_version_commit: true # if your prePublishOnly step pushes git commits, you can omit this input or set it to false.
|
|
40
|
+
github_token: ${{ secrets.GITHUB_TOKEN }} # built in actions token. Passed tp gh-release if in use.
|
|
41
|
+
npm_token: ${{ secrets.NPM_TOKEN }} # user set secret token generated at npm
|
|
42
|
+
- run: echo ${{ steps.npm-bump.outputs.release_tag }}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# second commit
|
|
2
|
+
# from https://github.com/marketplace/actions/npm-bump
|
|
3
|
+
name: NPM Version and Release (npm-bump.yml)
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
newversion:
|
|
9
|
+
description: 'Semantic Version Bump Type (major minor patch)'
|
|
10
|
+
required: true
|
|
11
|
+
|
|
12
|
+
env:
|
|
13
|
+
node_version: lts/*
|
|
14
|
+
|
|
15
|
+
concurrency: # prevent concurrent releases
|
|
16
|
+
group: npm-bump
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
version_and_release:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
outputs:
|
|
23
|
+
tagName: ${{ steps.npm-bump.outputs.release_tag }}
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v3
|
|
26
|
+
with:
|
|
27
|
+
# fetch full history so things like auto-changelog work properly
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
- name: Use Node.js ${{ env.node_version }}
|
|
30
|
+
uses: actions/setup-node@v3
|
|
31
|
+
with:
|
|
32
|
+
node-version: ${{ env.node_version }}
|
|
33
|
+
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
|
34
|
+
registry-url: 'https://registry.npmjs.org'
|
|
35
|
+
- run: npm i
|
|
36
|
+
- run: npm test
|
|
37
|
+
- name: Version and publish to npm
|
|
38
|
+
id: npm-bump
|
|
39
|
+
uses: bcomnes/npm-bump@v2
|
|
40
|
+
with:
|
|
41
|
+
git_email: bcomnes@gmail.com
|
|
42
|
+
git_username: ${{ github.actor }}
|
|
43
|
+
newversion: ${{ github.event.inputs.newversion }}
|
|
44
|
+
push_version_commit: true # if your prePublishOnly step pushes git commits, you can omit this input or set it to false.
|
|
45
|
+
github_token: ${{ secrets.GITHUB_TOKEN }} # built in actions token. Passed tp gh-release if in use.
|
|
46
|
+
npm_token: ${{ secrets.NPM_TOKEN }} # user set secret token generated at npm
|
|
47
|
+
- run: echo ${{ steps.npm-bump.outputs.release_tag }}
|
package/README.md
CHANGED
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
|
|
20
20
|
-->
|
|
21
21
|
|
|
22
|
+
Live BrowserStack Test Results:
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
- this can be updated with https://shields.io/
|
|
26
|
+
|
|
27
|
+
Remove these:
|
|
28
|
+
|
|
22
29
|
[![npm bundle size][npm-bundle-size]][npm-bundle-size]
|
|
23
30
|
[![Contributors][contributors-shield]][contributors-url]
|
|
24
31
|
[![Forks][forks-shield]][forks-url]
|
|
@@ -342,6 +349,8 @@ Resources I've found helpful and would like to give credit to:
|
|
|
342
349
|
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
|
343
350
|
|
|
344
351
|
|
|
352
|
+
|
|
353
|
+
|
|
345
354
|
[contributors-shield]: https://img.shields.io/github/contributors/StephanLuis/input-duration?style=for-the-badge
|
|
346
355
|
[contributors-url]: https://github.com/StephanLuis/input-duration/graphs/contributors
|
|
347
356
|
[forks-shield]: https://img.shields.io/github/forks/StephanLuis/input-duration?style=for-the-badge
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @see <a href="https://www.npmjs.com/package/input-duration">NPM input-duration</a>
|
|
11
11
|
* @see <a href="https://github.com/StephanLuis/input-duration">GitHub input-duration</a>
|
|
12
12
|
* @copyright MIT License, Copyright (c) 2022
|
|
13
|
-
* @version 2.2.
|
|
13
|
+
* @version 2.2.9 (DEV)
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "input-duration",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12",
|
|
4
4
|
"author": "Stephan Luis <stephan@learnsense.org>",
|
|
5
5
|
"description": "This is the 'Input-Duration'! It is a webcomponent that provides an hour, minute, second, and millisecond control for HTML5.",
|
|
6
6
|
"browser": "indexjs",
|