Skip to content

Version bump

Version bump #10

Workflow file for this run

name: Publish package to NPM
on:
push:
tags:
- '*'
jobs:
tests-ci:
strategy:
fail-fast: false
matrix:
node-version: [ 14, 16 ]
os: [ ubuntu-latest ] #in the future we should add windows here
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install Deps
run: npm install
- name: Run tests
run: npm t
build-and-publish:
runs-on: ubuntu-latest
needs: tests-ci
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_KEY}}