Skip to content

build(deps-dev): Bump eslint from 8.57.0 to 9.6.0 #77

build(deps-dev): Bump eslint from 8.57.0 to 9.6.0

build(deps-dev): Bump eslint from 8.57.0 to 9.6.0 #77

Workflow file for this run

name: Node
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: node-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^10'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check build changes
# See https://github.com/skjnldsv/check-actor-permission/blob/main/action.yml#L27
if: matrix.node-version == 16
run: |
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
- name: Show changes on failure
if: failure()
run: |
git status
git --no-pager diff
exit 1 # make it red to grab attention