Skip to content

merge master

merge master #28

Workflow file for this run

name: publish
on:
push:
branches: [master]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract Tag
shell: bash
run: echo "##[set-output name=tag;]$([ "${GITHUB_REF##*/}" == "master" ] && echo "latest" || echo "beta")"
id: extract_tag
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- run: npm test
- run: npm run build
- name: Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ steps.extract_tag.outputs.tag }}