PR-715551: Fix CI — upgrade to Node 22 and remove --legacy-peer-deps.

ruru@2.0.0 requires Node >=22. Updated all workflow jobs to Node 22
and removed --legacy-peer-deps flag since peer deps resolve cleanly.
This commit is contained in:
2026-06-03 04:01:18 +00:00
parent 3306032b5b
commit b46567f40e

View File

@@ -16,17 +16,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [20.x] node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Use Node.js 20 - name: Use Node.js 22
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 20 node-version: 22
cache: 'npm' cache: 'npm'
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps - run: npm ci
- run: npm test - run: npm test
# Job to build the package # Job to build the package
@@ -38,9 +38,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 20 node-version: 22
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps - run: npm ci
- run: npm run build - run: npm run build
# Job to publish the package to npm # Job to publish the package to npm
@@ -52,9 +52,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 20 node-version: 22
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps - run: npm ci
- run: npm publish --access=public - run: npm publish --access=public
env: env:
NPM_PERSONAL_TOKEN: ${{secrets.npm_token}} NPM_PERSONAL_TOKEN: ${{secrets.npm_token}}