Skip to content

Commit b29ebcd

Browse files
Merge pull request #92 from praliptarajoo/new-main
Automate release note for PR added to main using github actions
2 parents 5508c80 + f30c14d commit b29ebcd

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,16 @@ jobs:
6464
6565
- name: 'Switch back to main branch'
6666
run: |
67-
git checkout main
67+
git checkout main
68+
create-github-release:
69+
name: Create Github release document
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- name: Checkout code
74+
uses: actions/checkout@v2
75+
76+
- name: Semantic Release
77+
78+
env:
79+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,10 @@
4949
"serve": "^14.2.1",
5050
"tailwindcss": "^3",
5151
"typescript": "^5"
52+
},
53+
"release": {
54+
"branches": [
55+
"main"
56+
]
5257
}
5358
}

0 commit comments

Comments
 (0)