Skip to content

Commit

Permalink
ci: add workflow to publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Nov 8, 2023
1 parent a9460e9 commit 30b325f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

# Currently, only npm supports publishing packages with provenance
# https://docs.npmjs.com/generating-provenance-statements
run: |
npm install
npm run build:docs & npm run build:lib
npm publish --provenance --access public

0 comments on commit 30b325f

Please sign in to comment.