mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2026-06-03 23:24:13 -06:00
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:
16
.github/workflows/main-workflow.yml
vendored
16
.github/workflows/main-workflow.yml
vendored
@@ -16,17 +16,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
node-version: [22.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js 20
|
||||
- name: Use Node.js 22
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'npm'
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci --legacy-peer-deps
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
|
||||
# Job to build the package
|
||||
@@ -38,9 +38,9 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci --legacy-peer-deps
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
||||
# Job to publish the package to npm
|
||||
@@ -52,9 +52,9 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci --legacy-peer-deps
|
||||
- run: npm ci
|
||||
- run: npm publish --access=public
|
||||
env:
|
||||
NPM_PERSONAL_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
Reference in New Issue
Block a user