Skip to content

Commit cc27009

Browse files
committed
feat: publish release notes to github automatically
1 parent c55418a commit cc27009

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
path: "./apps/browser-example/dist/"
3939

40-
deploy:
40+
pages:
4141
needs: build
4242
environment:
4343
name: github-pages
@@ -47,3 +47,13 @@ jobs:
4747
# https://github.com/actions/deploy-pages & https://github.com/actions/starter-workflows/blob/main/pages/static.yml
4848
- uses: actions/deploy-pages@v4
4949
id: deployment
50+
51+
release:
52+
needs: build
53+
runs-on: ubuntu-latest
54+
steps:
55+
- env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
# TODO: NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
58+
run: |
59+
npx semantic-release@24

release.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default {
2+
// https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration
3+
// https://github.com/semantic-release/semantic-release/blob/master/docs/usage/plugins.md
4+
plugins: [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
// TODO: "@semantic-release/npm",
8+
"@semantic-release/github",
9+
],
10+
}

0 commit comments

Comments
 (0)