Skip to content

chore(deps): update dependency eslint to v9 #3053

chore(deps): update dependency eslint to v9

chore(deps): update dependency eslint to v9 #3053

Workflow file for this run

name: CI
on:
push:
branches:
- main
- renovate/**
pull_request:
env:
NODE_VERSION: 18
permissions: {}
jobs:
tests:
name: Unit tests
runs-on: ubuntu-latest
if: "!startsWith(github.head_ref, 'renovate/')"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Unit tests
run: yarn test --ci --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
lint:
name: Lint
runs-on: ubuntu-latest
if: "!startsWith(github.head_ref, 'renovate/')"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Lint
run: yarn lint
release:
needs: [tests, lint]
if: github.ref == 'refs/heads/main'
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Release
run: npx semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}