Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit 60b62bc

Browse files
committed
feat: add semantic-release
1 parent d1dbf90 commit 60b62bc

File tree

3 files changed

+8823
-2412
lines changed

3 files changed

+8823
-2412
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Publish to npm
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
branches: main
6+
7+
env:
8+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
610

711
jobs:
812
run-tests:
@@ -13,13 +17,12 @@ jobs:
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@v4
16-
# Setup .npmrc file to publish to npm
20+
with:
21+
fetch-depth: 0
22+
token: ${{ secrets.GH_TOKEN }}
1723
- uses: actions/setup-node@v4
1824
with:
19-
node-version: '20.x'
20-
registry-url: 'https://registry.npmjs.org'
25+
node-version: '20.19.0'
2126
- run: npm ci
2227
- run: npm run build
23-
- run: npm publish --access public
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
- run: npm run semantic-release

0 commit comments

Comments
 (0)