mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
4d8dc221bf
# Update Node.js from 20.19.4 to 22.19.0 This PR updates Node.js from v20.19.4 to v22.19.0 across the codebase. The change includes: - Updated Node.js version in GitHub Actions setup-node workflow - Updated Node.js version in the dogfood Dockerfile - Changed from `pkgs.nodejs_20` to `unstablePkgs.nodejs_22` in the Nix flake - Updated the Node.js engine version constraints in package.json files to allow Node.js 22 - Updated Playwright from v1.47.0 to v1.50.1 - Updated tzdata dependency from v1.0.44 to v1.0.46 - Updated the flake.lock file with latest nixpkgs references The PR also improves the error message for Playwright version mismatches by showing the actual versions in the error.
32 lines
904 B
YAML
32 lines
904 B
YAML
name: "Setup Node"
|
|
description: |
|
|
Sets up the node environment for tests, builds, etc.
|
|
inputs:
|
|
directory:
|
|
description: |
|
|
The directory to run the setup in.
|
|
required: false
|
|
default: "site"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
|
|
with:
|
|
node-version: 22.19.0
|
|
# See https://github.com/actions/setup-node#caching-global-packages-data
|
|
cache: "pnpm"
|
|
cache-dependency-path: ${{ inputs.directory }}/pnpm-lock.yaml
|
|
|
|
- name: Install root node_modules
|
|
shell: bash
|
|
run: ./scripts/pnpm_install.sh
|
|
|
|
- name: Install node_modules
|
|
shell: bash
|
|
run: ../scripts/pnpm_install.sh
|
|
working-directory: ${{ inputs.directory }}
|