Skip to content

build(deps-dev): bump @eslint/js from 9.0.0 to 9.1.1 #26

build(deps-dev): bump @eslint/js from 9.0.0 to 9.1.1

build(deps-dev): bump @eslint/js from 9.0.0 to 9.1.1 #26

name: Test & Maybe Release
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
env:
FORCE_COLOR: 2
jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 18
- 20
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Clone nodejs/node repository
uses: actions/checkout@v4
with:
repository: nodejs/node
path: tmp
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Run tests
run: npm test
release:
name: Release
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: |
npm install --no-progress --no-package-lock --no-save
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release