Skip to content

Commit

Permalink
Merge pull request #27 from rezaageng/ci/semantic-release
Browse files Browse the repository at this point in the history
ci(app): 👷 add semantic release
  • Loading branch information
rezaageng authored Oct 21, 2023
2 parents 6ee58e2 + 5ade401 commit 4be05f1
Show file tree
Hide file tree
Showing 4 changed files with 1,676 additions and 14 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: workflow_dispatch

jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm dlx semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@react-three/test-renderer": "^8.2.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.1",
"@semantic-release/npm": "^11.0.0",
"@tailwindcss/typography": "^0.5.10",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
Expand All @@ -83,6 +86,7 @@
"prettier": "3.0.1",
"prettier-plugin-tailwindcss": "^0.4.1",
"resize-observer-polyfill": "^1.5.1",
"semantic-release": "^22.0.5",
"tailwind-scrollbar": "^3.0.4",
"tailwindcss": "^3.3.3",
"ts-jest": "^29.1.1",
Expand Down
Loading

0 comments on commit 4be05f1

Please sign in to comment.