Skip to content

build: update to Node.js 22 TDE-1193#439

Draft
l0b0 wants to merge 1 commit intomasterfrom
build/node-22-tde-1193
Draft

build: update to Node.js 22 TDE-1193#439
l0b0 wants to merge 1 commit intomasterfrom
build/node-22-tde-1193

Conversation

@l0b0
Copy link
Copy Markdown
Contributor

@l0b0 l0b0 commented Jun 20, 2024

  1. Update the engine:

    jq '.engines.node = "^22.11.0"' package.json | sponge package.json
    
  2. Update the uses of actions/setup-node:

    for path in .github/workflows/*.y*ml; do
        yq --inplace '((.jobs.*.steps[] | select(.uses == "actions/setup-node*")) | del(.name) | .with.node-version) = "22.x"' "$path"
    done
    
  3. Update the uses of linz/action-typescript:

    for path in .github/workflows/*.y*ml; do
        yq --inplace '(.jobs.*.steps[] | select(.uses == "linz/action-typescript*").with.node-version) = "22.x"' "$path"
    done
    
  4. Verify the change:

    git clean -fdx --exclude=.idea
    npm install
    npm run lint
    git grep --word-regexp -e 14 -e 16 -e 18 -e 20
    

1. Update the engine:

   ```
   jq '.engines.node = "^22.2.0"' package.json | sponge package.json
   ```
2. Update the lock file:

   ```
   npm install
   ```
3. Update the uses of `actions/setup-node`:

   ```
   for path in .github/workflows/*.y*ml; do
       yq --inplace '((.jobs.*.steps[] | select(.uses == "actions/setup-node*")) | del(.name) | .with.node-version) = "22.x"' "$path"
   done
   ```
4. Update the uses of `linz/action-typescript`:

   ```
   for path in .github/workflows/*.y*ml; do
       yq --inplace '(.jobs.*.steps[] | select(.uses == "linz/action-typescript*").with.node-version) = "22.x"' "$path"
   done
   ```

Verified with `git grep --word-regexp -e 14 -e 16 -e 18 -e 20`.
@l0b0 l0b0 requested a review from a team as a code owner June 20, 2024 22:42
@l0b0 l0b0 enabled auto-merge June 20, 2024 22:42
@l0b0 l0b0 marked this pull request as draft September 6, 2024 04:02
auto-merge was automatically disabled September 6, 2024 04:02

Pull request was converted to draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant