Skip to content

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

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

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

name: Lint, Build, Test
on: push
jobs:
Lint:
runs-on: ubuntu-latest
timeout-minutes: 2
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 i
- name: Lint
run: npm run lint
Build:
runs-on: ubuntu-latest
timeout-minutes: 2
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
- name: Build
run: npm run build
Test:
runs-on: ubuntu-latest
timeout-minutes: 2
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
- name: Test
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 i --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 }}