-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.02 KB
/
Copy pathpublish.yml
File metadata and controls
40 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Publish to npm
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run build
- name: Upload Build Artifact
uses: actions/upload-artifact@v7.0.1
with:
name: dist-files
path: dist/
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Download Build Artifact
uses: actions/download-artifact@v8.0.1
with:
name: dist-files
path: dist/
- run: bun publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}