Skip to content

Beneficiary Reporting Validation - Publish #16

Beneficiary Reporting Validation - Publish

Beneficiary Reporting Validation - Publish #16

Workflow file for this run

name: Beneficiary Reporting Validation - Publish
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout Codebase
uses: actions/checkout@v2
- name: Configure Node version and registry
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Run Build
run: npm run test:cov
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Run Build
run: npm run build
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}