Skip to content

Added truthy check for boolean values #15

Added truthy check for boolean values

Added truthy check for boolean values #15

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 }}