Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit e8ba8d6

Browse files
committed
feat: initial commit
0 parents  commit e8ba8d6

10 files changed

+13836
-0
lines changed

.github/workflows/bump-version.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
level:
5+
description: 'One of "major" or "minor"'
6+
required: true
7+
default: 'minor'
8+
name: Bump Version
9+
permissions:
10+
contents: write
11+
jobs:
12+
bump_version:
13+
runs-on: ubuntu-latest
14+
name: Bump Version
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Cal Ver
19+
uses: ./
20+
id: calver
21+
with:
22+
level: ${{ github.event.inputs.level }}
23+
token: ${{ github.token }}
24+
- name: Release
25+
uses: softprops/action-gh-release@v1
26+
with:
27+
generate_release_notes: true
28+
tag_name: ${{ steps.calver.outputs.version }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run precommit

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 110
5+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Speechify
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.

action.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'calver'
2+
description: 'Create tag for calendar versioning in the form of vMAJOR.YYYYMMDD.PATCH'
3+
inputs:
4+
level:
5+
description: 'One of "major" or "minor"'
6+
default: 'minor'
7+
token:
8+
description: 'GitHub token'
9+
outputs:
10+
version:
11+
description: 'New version in the format of vMAJOR.YYYMMDD.PATCH'
12+
runs:
13+
using: 'node16'
14+
main: 'dist/index.js'

0 commit comments

Comments
 (0)