Skip to content

Commit

Permalink
ci: add semrel (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
knjk04 authored Jul 12, 2023
1 parent 8e0467b commit 8855a49
Show file tree
Hide file tree
Showing 6 changed files with 6,724 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Summary of change

[Please briefly describe what you have changed.]

## Related issue

Closes #[issue number]
34 changes: 34 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Conventional Commits

on:
push:
branches:
- "main"
- "alpha"
pull_request:
branches:
- "main"
- "alpha"

jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: gentleseal/action-conventional-commits@master
with:
valid-commit-types: >
[
"chore",
"fix",
"feat",
"BREAKING CHANGE",
"docs",
"refactor",
"test",
"ci",
"revert",
"merge"
]
31 changes: 31 additions & 0 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- "main"
- "alpha"
pull_request:
branches:
- "main"
- "alpha"

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm clean-install
- run: npx semantic-release --debug
env:
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
10 changes: 10 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: dataset-gen
branches:
- name: main
- name: alpha
prerelease: true

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/github"
Loading

0 comments on commit 8855a49

Please sign in to comment.