Skip to content

Commit

Permalink
Add GitHub Actions workflow to publish to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Sep 15, 2023
1 parent 2e6d062 commit 121812a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Clean install
run: npm ci
- name: Build
run: npm build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |-
npm publish \
-w packages/common \
-w packages/field \
-w packages/prg \
-w packages/vdaf \
-w packages/prio3 \
-w packages/dap

0 comments on commit 121812a

Please sign in to comment.