Skip to content

Commit 30b325f

Browse files
committed
ci: add workflow to publish to npm
1 parent a9460e9 commit 30b325f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
tags:
4+
- "v*"
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Publish package
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
14+
15+
# Currently, only npm supports publishing packages with provenance
16+
# https://docs.npmjs.com/generating-provenance-statements
17+
run: |
18+
npm install
19+
npm run build:docs & npm run build:lib
20+
npm publish --provenance --access public

0 commit comments

Comments
 (0)