Skip to content

Merge pull request #26 from etienne-martin/etienne-martin-patch-1 #14

Merge pull request #26 from etienne-martin/etienne-martin-patch-1

Merge pull request #26 from etienne-martin/etienne-martin-patch-1 #14

Workflow file for this run

name: "Build"
on:
push:
branches:
- main
pull_request:
jobs:
npm:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.17.0
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish code coverage
if: endsWith(github.ref, '/main') && github.event_name == 'push'
run: yarn coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Publish to npm
if: endsWith(github.ref, '/main') && github.event_name == 'push'
run: ./publish.sh ${{ secrets.NPM_AUTH_TOKEN }}