Skip to content

Commit a958f1d

Browse files
committed
feat: add release github actions
1 parent 59ff4b1 commit a958f1d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# .github/workflows/release.yml
2+
3+
name: Release
4+
5+
permissions:
6+
contents: write
7+
8+
on:
9+
push:
10+
tags:
11+
- 'v*'
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set node
22+
uses: actions/setup-node@v4
23+
with:
24+
registry-url: https://registry.npmjs.org/
25+
node-version: lts/*
26+
27+
- run: npx changelogithub # or changelogithub@0.12 if ensure the stable result
28+
env:
29+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)