Skip to content

upgrading joi to 17 #80

upgrading joi to 17

upgrading joi to 17 #80

Workflow file for this run

name: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
- refs/tags/*
tags:
- '*'
env:
NODE_VERSION: '14'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
registry-url: https://registry.npmjs.org/
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }}