Skip to content

v0.5.6

v0.5.6 #27

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when changes were pushed
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: publish
on:
push:
branches:
- master
jobs:
tests-checkout:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: install
run: npm install --legacy-peer-deps
- name: tests
run: npm run test:unit
publish-npm:
needs: tests-checkout
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}