Skip to content

Commit b43a194

Browse files
committed
feat: Enables semantic release for automated publishing
Sets up semantic release to automate the release process. This includes: - Adding a release workflow file. - Installing semantic-release and related plugins. - Creating a release configuration file. This automates versioning, changelog generation, and package publishing.
1 parent 5492d56 commit b43a194

File tree

5 files changed

+6176
-406
lines changed

5 files changed

+6176
-406
lines changed

.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- beta
8+
9+
permissions:
10+
contents: write # to be able to publish a GitHub release
11+
issues: write # to be able to comment on released issues
12+
pull-requests: write # to be able to comment on released pull requests
13+
id-token: write # to enable use of OIDC for npm provenance
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Build NPM package
26+
run: npm run build
27+
28+
- name: Create Release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: npm run semantic-release

0 commit comments

Comments
 (0)