Skip to content

Commit 02c025c

Browse files
committed
let's try release workflow
1 parent a53bc60 commit 02c025c

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: oven-sh/setup-bun@v1
13+
with:
14+
bun-version: 1.1.3
15+
- run: bun install --frozen-lockfile
16+
working-directory: ./main
17+
- run: bun run build
18+
working-directory: ./main
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20.x
22+
- run: npm publish
23+
with:
24+
working-directory: ./main
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

main/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"directory": "main"
2020
},
2121
"scripts": {
22-
"build": "bun run build.js --bun",
23-
"publish": "npm publish"
22+
"build": "bun run build.js --bun"
2423
},
2524
"peerDependencies": {
2625
"react": "^17.0.0 || ^18.0.0",

0 commit comments

Comments
 (0)