Skip to content

Merge branch 'migtools:main' into main #10

Merge branch 'migtools:main' into main

Merge branch 'migtools:main' into main #10

name: Release on merge
on:
push:
branches:
- main
jobs:
test-and-release:
name: Release to npm and publish docs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release