Skip to content

Commit

Permalink
chore: add semantic-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovicentegc committed Oct 14, 2023
1 parent e43fcf3 commit ae83b89
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release workflow

on:
push:
branches:
- main

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1
- run: bun install
- run: bun build
- run: bun run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"branches": [
"main"
]
}
Binary file modified bun.lockb
Binary file not shown.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"semantic-release": "semantic-release"
},
"dependencies": {
"@auth/mongodb-adapter": "^2.0.1",
Expand All @@ -25,6 +26,7 @@
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3"
"prettier": "^3.0.3",
"semantic-release": "^22.0.5"
}
}

0 comments on commit ae83b89

Please sign in to comment.