Skip to content

Commit

Permalink
ci: add semantic-release to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jun 28, 2024
1 parent 9db4138 commit 142dabf
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
branches:
- 'alpha'
- 'beta'
- 'main'

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Project
uses: ./.github/actions/setup

- name: Build Project
run: npm run build

- name: Semantic Release
run: npx semantic-release
13 changes: 13 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
branches: [
'main',
{
name: 'beta',
prerelease: true,
},
{
name: 'alpha',
prerelease: true,
},
],
};
1 change: 1 addition & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.json",
"files": [
".eslintrc.js",
"release.config.js",
"wallaby.js",
]
}

0 comments on commit 142dabf

Please sign in to comment.