Merge pull request #262 from danilo-alm/feat-move-to-toml #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |