Skip to content

Commit

Permalink
😀build: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinko committed Nov 17, 2024
1 parent 1e6ab4f commit f1c7b40
Show file tree
Hide file tree
Showing 4 changed files with 1,453 additions and 13 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: npm install

- name: Run Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
17 changes: 17 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"branches": ["main"],
"repositoryUrl": "https://github.com/blinko-space/blinko",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@
},
"devDependencies": {
"@headlessui/tailwindcss": "^0.1.3",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@types/lodash": "^4.14.195",
"@types/ncp": "^2.0.8",
"@types/node": "20.2.5",
Expand All @@ -147,6 +150,7 @@
"postcss": "^8.4.24",
"postcss-nesting": "^12.0.0",
"prisma": "^5.21.1",
"semantic-release": "^24.2.0",
"tailwindcss": "^3.3.2",
"tailwindcss-animate": "^1.0.6",
"ts-node": "^10.9.2",
Expand Down
Loading

0 comments on commit f1c7b40

Please sign in to comment.