Skip to content

build(deps-dev): bump @typescript-eslint/eslint-plugin #1257

build(deps-dev): bump @typescript-eslint/eslint-plugin

build(deps-dev): bump @typescript-eslint/eslint-plugin #1257

name: lint, build, and test
on: push
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: setup dependencies
run: npm i -g eslint prettier && npm ci
- name: lint
run: npm run lint:ts
- name: check formatting
run: npm run prettier
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: setup dependencies
run: npm ci
- name: build
run: npm run build
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: setup dependencies
run: npm ci
- name: run tests
run: npm run test
publish:
name: publish
needs: test
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: setup dependencies
run: npm ci --omit=peer
- name: build
run: npm run build
- name: publish
uses: mikeal/merge-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}