Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changelog:
exclude:
labels:
- tagpr
4 changes: 4 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['github>tapihdev/renovate-config:default.json5']
}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths-ignore: [ '*.md' ]
branches:
- master
- main

jobs:
build:
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/codegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Transpile

on:
pull_request:
branches:
- main

jobs:
codegen:
name: Generate
if: github.actor != vars.BOT_USERNAME && github.actor != vars.APP_NAME_TAGPR
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Fetch GitHub App Token
uses: actions/create-github-app-token@v1
id: token
with:
app-id: ${{ vars.APP_ID_TAGPR }}
private-key: ${{ secrets.PRIVATE_KEY_TAGPR }}

- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ steps.token.outputs.token }}

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

- name: Install Dependencies
id: install
run: npm ci

- name: Build dist/ Directory
id: build
run: npm run bundle

- name: Check diff
id: diff
continue-on-error: true
run: git diff --exit-code

- name: Push
env:
BOT_EMAIL: ${{ vars.BOT_EMAIL }}
BOT_USERNAME: ${{ vars.BOT_USERNAME }}
if:
github.event_name == 'pull_request' && steps.diff.outcome == 'failure'
run: |
git config --global user.email "${BOT_EMAIL}"
git config --global user.name "${BOT_USERNAME}"
git commit -am "chore: generate code"
git push
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
paths-ignore: [ '*.md' ]
branches:
- master
- main
- '**'

jobs:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/tagpr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tagpr
on:
push:
branches:
- main

jobs:
tagpr:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions: {}
steps:
- name: Fetch GitHub App Token
uses: actions/create-github-app-token@v1
id: token
with:
app-id: ${{ vars.APP_ID_TAGPR }}
private-key: ${{ secrets.PRIVATE_KEY_TAGPR }}

- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ steps.token.outputs.token }}

- name: Tagpr
id: tagpr
uses: tapihdev/actionshub/Songmu/tagpr@main
with:
github-token: ${{ steps.token.outputs.token }}

- name: Annotate major and minor tags
if: steps.tagpr.outputs.tag != ''
uses: tapihdev/tag-major-minor-semver@v1
with:
tag: ${{ steps.tagpr.outputs.tag }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dependency directory
node_modules

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Rest pulled from https://github.com/github/gitignore/blob/main/Node.gitignore
# Logs
logs
*.log
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.13.1
42 changes: 42 additions & 0 deletions .tagpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# config file for the tagpr in git config format
# The tagpr generates the initial configuration, which you can rewrite to suit your environment.
# CONFIGURATIONS:
# tagpr.releaseBranch
# Generally, it is "main." It is the branch for releases. The tagpr tracks this branch,
# creates or updates a pull request as a release candidate, or tags when they are merged.
#
# tagpr.versionFile
# Versioning file containing the semantic version needed to be updated at release.
# It will be synchronized with the "git tag".
# Often this is a meta-information file such as gemspec, setup.cfg, package.json, etc.
# Sometimes the source code file, such as version.go or Bar.pm, is used.
# If you do not want to use versioning files but only git tags, specify the "-" string here.
# You can specify multiple version files by comma separated strings.
#
# tagpr.vPrefix
# Flag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true)
# This is only a tagging convention, not how it is described in the version file.
#
# tagpr.changelog (Optional)
# Flag whether or not changelog is added or changed during the release.
#
# tagpr.command (Optional)
# Command to change files just before release.
#
# tagpr.template (Optional)
# Pull request template in go template format
#
# tagpr.release (Optional)
# GitHub Release creation behavior after tagging [true, draft, false]
# If this value is not set, the release is to be created.
#
# tagpr.majorLabels (Optional)
# Label of major update targets. Default is [major]
#
# tagpr.minorLabels (Optional)
# Label of minor update targets. Default is [minor]
#
[tagpr]
vPrefix = true
releaseBranch = main
versionFile = package.json,README.md
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

The MIT License (MIT)

Copyright (c) 2020 Michal Dorner and contributors
Copyright (c) 2025 Hiroshi Muraoka and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -19,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
Loading