Skip to content

Merge pull request #262 from danilo-alm/feat-move-to-toml #171

Merge pull request #262 from danilo-alm/feat-move-to-toml

Merge pull request #262 from danilo-alm/feat-move-to-toml #171

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
lint:
name: Lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['14', '16']
os: [ubuntu-latest]
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- uses: rwjblue/setup-volta@v1
- name: Yarn Install
run: yarn install
- name: Running ESLint
run: |
yarn lint
- name: Running tests
run: |
yarn test
build-and-deploy:
name: Publish
needs: [lint]
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Volta setup
uses: rwjblue/setup-volta@v1
- name: Install
run: yarn install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release