Skip to content

build(deps-dev): bump eslint from 8.57.1 to 9.20.0 #361

build(deps-dev): bump eslint from 8.57.1 to 9.20.0

build(deps-dev): bump eslint from 8.57.1 to 9.20.0 #361

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
tags: [ "v*" ]
pull_request:
branches: [ "**" ]
workflow_dispatch:
jobs:
build:
name: Build (${{ matrix.node-version }})
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
strategy:
fail-fast: false
matrix:
node-version: [ latest, 16, 18, 20, "lts/*" ]
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v4
# Setup
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
# Test
- name: Install dependencies
run: npm ci
- name: Test
run: |-
npm run build
npm run test:ci
build-all:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
needs: [ build ]
steps:
- run: echo OK
publish:
name: Publish
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
permissions:
contents: read
needs: [ build-all ]
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v4
# Setup
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
registry-url: 'https://registry.npmjs.org'
# Dependencies
- name: Install dependencies
run: npm ci
# Publish
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}