Skip to content

Commit 293b7f4

Browse files
committed
ci: 添加 GitHub Actions 发布工作流
1 parent be885d0 commit 293b7f4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
permissions:
4+
id-token: write
5+
contents: write
6+
7+
on:
8+
push:
9+
tags:
10+
- 'v*'
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: lts/*
23+
registry-url: https://registry.npmjs.org/
24+
25+
- run: pnpm dlx changelogithub
26+
env:
27+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28+
29+
# # Uncomment the following lines to publish to npm on CI
30+
#
31+
# - run: pnpm install
32+
# - run: pnpm publish --no-git-checks -r --access public
33+
# env:
34+
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
35+
# NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)