Skip to content

Commit

Permalink
chore(release workflow): adds release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Asman Umbetov committed Nov 25, 2023
1 parent 85de72a commit 72103a4
Show file tree
Hide file tree
Showing 4 changed files with 2,566 additions and 29 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Semantic Release

on: [push]

jobs:
semantic_release:
name: Semantic Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .releserc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const config = {
branches: [{ name: 'master' }],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
},
],
'@semantic-release/release-notes-generator',
[
'@semantic-release/git',
{
assets: ['package.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
repositoryUrl: 'https://github.com/fastndead/poker',
dryRun: true,
debug: false, // Set to "true" for debugging purposes
}

module.exports = config
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"format": "prettier --write src/**/*.{ts,tsx}",
"eject": "react-scripts eject",
"prepare": "husky install",
"commit": "cz"
"commit": "cz",
"semantic-release": "semantic-release"
},
"dependencies": {
"@react-spring/web": "^9.7.1",
Expand All @@ -40,6 +41,9 @@
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/express-session": "^1.17.6",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
Expand All @@ -51,6 +55,7 @@
"husky": "^8.0.0",
"nodemon": "^2.0.20",
"prettier": "^3.1.0",
"semantic-release": "^22.0.8",
"stylelint": "^15.2.0",
"stylelint-config-standard": "^30.0.1",
"tailwindcss": "^3.2.7"
Expand Down
Loading

0 comments on commit 72103a4

Please sign in to comment.