input-duration 2.2.9 → 2.2.10
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 +45 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Version and Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
newversion:
|
|
7
|
+
description: 'Semantic Version Bump Type (major minor patch)'
|
|
8
|
+
required: true
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
node_version: lts/*
|
|
12
|
+
|
|
13
|
+
concurrency: # prevent concurrent releases
|
|
14
|
+
group: npm-bump
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
version_and_release:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
outputs:
|
|
21
|
+
tagName: ${{ steps.npm-bump.outputs.release_tag }}
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v3
|
|
24
|
+
with:
|
|
25
|
+
# fetch full history so things like auto-changelog work properly
|
|
26
|
+
fetch-depth: 0
|
|
27
|
+
- name: Use Node.js ${{ env.node_version }}
|
|
28
|
+
uses: actions/setup-node@v3
|
|
29
|
+
with:
|
|
30
|
+
node-version: ${{ env.node_version }}
|
|
31
|
+
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
|
32
|
+
registry-url: 'https://registry.npmjs.org'
|
|
33
|
+
- run: npm i
|
|
34
|
+
- run: npm test
|
|
35
|
+
- name: Version and publish to npm
|
|
36
|
+
id: npm-bump
|
|
37
|
+
uses: bcomnes/npm-bump@v2
|
|
38
|
+
with:
|
|
39
|
+
git_email: stephan@learnsense.org
|
|
40
|
+
git_username: ${{ github.actor }}
|
|
41
|
+
newversion: ${{ github.event.inputs.newversion }}
|
|
42
|
+
push_version_commit: true # if your prePublishOnly step pushes git commits, you can omit this input or set it to false.
|
|
43
|
+
github_token: ${{ secrets.PAT_KEY }} # built in actions token. Passed tp gh-release if in use.
|
|
44
|
+
npm_token: ${{ secrets.NPM_TOKEN }} # user set secret token generated at npm
|
|
45
|
+
- run: echo ${{ steps.npm-bump.outputs.release_tag }}
|
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.8 (release)
|
|
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.10",
|
|
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",
|