Release - 1.2.8 #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |