Skip to content

Commit 88ebbf9

Browse files
committed
Start GitHub Action to build and publish NPM package
1 parent 8b10313 commit 88ebbf9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish NPM package
2+
permissions:
3+
contents: write
4+
on: push
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- name: Setup Bun
14+
uses: oven-sh/setup-bun@v2
15+
- name: Install dependencies
16+
run: bun install
17+
- name: Build NPM package
18+
run: bun run build:npm
19+
- name: Publish NPM package
20+
run: echo TODO
21+
# run: npm publish --provenance --access public
22+
# env:
23+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)