diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 938888dd8..1489636d6 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -28,15 +28,11 @@ jobs: path: .bundle-base persist-credentials: false ref: ${{ github.event.pull_request.base.sha }} - - run: corepack enable - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: - node-version: lts/-1 - cache: pnpm + cache: true cache-dependency-path: .bundle-base/pnpm-lock.yaml - - name: Install base dependencies - working-directory: .bundle-base - run: pnpm install --frozen-lockfile + working-directory: .bundle-base - name: Prepare the base revision working-directory: .bundle-base run: pnpm nuxt prepare @@ -78,14 +74,10 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false - - run: corepack enable - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: - node-version: lts/-1 - cache: pnpm + cache: true cache-dependency-path: pnpm-lock.yaml - - name: Install PR dependencies - run: pnpm install --frozen-lockfile - name: Prepare the PR revision run: pnpm nuxt prepare - name: Analyze the PR bundle diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4f31d03f..dcb1ae570 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - run: corepack enable - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: - node-version: lts/-1 - cache: "pnpm" - - run: pnpm install + cache: true - run: pnpm nuxt prepare - run: pnpm lint @@ -29,12 +26,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - run: corepack enable - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: - node-version: lts/-1 - cache: "pnpm" - - run: pnpm install + cache: true - run: pnpm nuxt prepare - run: pnpm vitest run env: @@ -44,11 +38,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - run: corepack enable - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: - node-version: lts/-1 - cache: "pnpm" - - run: pnpm install + cache: true - run: pnpm nuxt prepare - run: pnpm typecheck diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 8a54cbeff..1bd4e06c5 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -28,11 +28,8 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false - - run: corepack enable - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + - uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0 with: - node-version: lts/-1 - - run: pnpm install --frozen-lockfile - run: pnpm exec playwright install - name: Run Playwright E2E tests run: pnpm test:browser diff --git a/package.json b/package.json index f86ce969c..e405b71f6 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,13 @@ "name": "nuxt.com", "version": "0.3.11", "packageManager": "pnpm@12.3.4", + "devEngines": { + "runtime": { + "name": "node", + "version": "^22.12.0", + "onFail": "warn" + } + }, "type": "module", "scripts": { "dev": "nuxt dev --ui-only",