Skip to content

2.0.1

2.0.1 #4

Workflow file for this run

name: Node.js Package
on:
push:
branch:
- master
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run test-ci
- name: Publish Code Coverage
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v1
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}