Skip to content

Commit 29ad68d

Browse files
committed
feat(release): auto publish by github action
1 parent ac710a6 commit 29ad68d

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,25 @@ jobs:
1919

2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20.x
22+
node-version: 22.x
23+
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
registry-url: https://registry.npmjs.org
32+
cache: pnpm
33+
34+
- run: pnpm install
35+
36+
- run: pnpm build
37+
38+
- run: npm publish --access public
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2341

2442
- run: npx changelogithub
2543
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"coverage": "vitest run --coverage",
3838
"commit": "git-cz",
3939
"prerelease": "pnpm build && pnpm coverage",
40-
"release": "bumpp && npm publish",
40+
"release": "bumpp",
4141
"prepare": "husky"
4242
},
4343
"devDependencies": {

0 commit comments

Comments
 (0)