Skip to content

Merge pull request #44 from Aliheym/refactor/improve-tests #34

Merge pull request #44 from Aliheym/refactor/improve-tests

Merge pull request #44 from Aliheym/refactor/improve-tests #34

Workflow file for this run

name: main
on: [push]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check If Tag
id: check-tag
run: |-
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ::set-output name=match::true
fi
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Publish
if: steps.check-tag.outputs.match == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}