mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
* fix: pin Yarn version from packageManager field in build scripts Replace hardcoded 'yarn set version 4' in build-functions.sh with a dynamic lookup from each workspace's package.json packageManager field. Also syncs runtime yarn version to 4.15.0 to match web/package.json. Fixes CI build failures caused by Yarn 4.x fetching a newer patch that produces different builtin compat hashes, breaking --immutable lockfile validation.
36 lines
747 B
YAML
36 lines
747 B
YAML
name: Check Javascript style
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-javascript-style:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Upgrade yarn
|
|
run: |
|
|
yarn set version berry
|
|
yarn set version $(node -p "require('./web/package.json').packageManager.split('@')[1]")
|
|
|
|
- name: Install Node modules
|
|
run: |
|
|
cd web
|
|
yarn install
|
|
|
|
- name: Run the linter
|
|
run: |
|
|
cd web
|
|
yarn run linter
|