Skip to content

Update dependency eslint to v8.47.0 #354

Update dependency eslint to v8.47.0

Update dependency eslint to v8.47.0 #354

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ["*"]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["14", "16", "18"]
steps:
- uses: actions/checkout@v3
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Update to latest npm
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci --include=dev
- name: Lint with ESLint
run: npm run lint
publish:
name: Publish
needs: lint
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: "18"
cache: npm
registry-url: "https://registry.npmjs.org"
- name: Update to latest npm
run: npm install -g npm@latest
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}