Skip to content

Commit 029700c

Browse files
committed
ci: release with semantic release
1 parent 2e9b579 commit 029700c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release Source
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "20"
24+
25+
- name: Enable pnpm
26+
run: corepack enable
27+
28+
- name: Install dependencies
29+
run: |
30+
pnpm install
31+
32+
- name: Run semantic-release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
35+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
HUSKY: 0
37+
run: pnpm dlx semantic-release

0 commit comments

Comments
 (0)