Skip to content

Update README

Update README #1

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a tag is created.
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Release
on:
push:
tags: [ 'v*' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build --if-present
- run: npm run test
env:
OPERATOR_ID: ${{ secrets.OPERATOR_ID }}
OPERATOR_KEY: ${{ secrets.OPERATOR_KEY }}
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN }}