Skip to content

Commit

Permalink
Add GitHub Actions workflow to publish to NPM (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Sep 15, 2023
1 parent d4b1ec4 commit 3774e3a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: Test
run: npm run test
- 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 3774e3a

Please sign in to comment.