Skip to content

Merge pull request #62 from navikt/dependabot/npm_and_yarn/word-wrap-… #23

Merge pull request #62 from navikt/dependabot/npm_and_yarn/word-wrap-…

Merge pull request #62 from navikt/dependabot/npm_and_yarn/word-wrap-… #23

Workflow file for this run

name: Test, build and publish
on:
push:
branches:
- master
env:
CI: true
jobs:
test-build-publish:
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.13.1'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Test
run: yarn test --coverage
- name: Build
run: yarn build
- name: Publish
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}