Skip to content

Merge pull request #32 from reneklootwijk/dependabot/npm_and_yarn/sem… #53

Merge pull request #32 from reneklootwijk/dependabot/npm_and_yarn/sem…

Merge pull request #32 from reneklootwijk/dependabot/npm_and_yarn/sem… #53

Workflow file for this run

name : build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run test
env:
TZ: 'Europe/Amsterdam'
- run: npm run coverage
env:
TZ: 'Europe/Amsterdam'
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish-npm:
if: ${{ github.event_name == 'push' }}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{secrets.NPM_TOKEN}}