Skip to content

Workflow file for this run

name: Publish Package to NPM and GitHub
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn
- run: yarn run test
env:
PDL_API_KEY: ${{secrets.PDL_API_KEY}}
publish-npm:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn run pub
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}