We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c50bbc9 commit 0ce146eCopy full SHA for 0ce146e
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,40 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: oven-sh/setup-bun@v2
13
+ with:
14
+ bun-version: latest
15
+ - run: bun ci
16
+ - run: bun run build
17
18
+ - name: Upload Build Artifact
19
+ uses: actions/upload-artifact@v7.0.1
20
21
+ name: dist-files
22
+ path: dist/
23
24
+ publish-npm:
25
+ needs: build
26
27
28
29
30
31
32
33
+ - name: Download Build Artifact
34
+ uses: actions/download-artifact@v8.0.1
35
36
37
38
+ - run: bun publish
39
+ env:
40
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments