Skip to content

Commit

Permalink
chore: add semantic release closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Sep 16, 2023
1 parent 37b3170 commit 3aa8b1e
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mikesmithgh
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: |
npm install @semantic-release/git @semantic-release/changelog -D
npx semantic-release
env:
GH_TOKEN: ${{ secrets.KITTY_SCROLLBACK_CI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.KITTY_SCROLLBACK_CI_TOKEN }}
27 changes: 27 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"branches": "main",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github"
]
]
}


Empty file added CHANGELOG.md
Empty file.

0 comments on commit 3aa8b1e

Please sign in to comment.