From 0006a599050a14484c4c1ff4c88810c6906809f2 Mon Sep 17 00:00:00 2001 From: Luca Becker Date: Thu, 12 Dec 2024 09:27:38 +0100 Subject: [PATCH] chore(deps): update node.js to v22 --- .github/workflows/node.js.yml | 5 +++++ .github/workflows/release.yml | 7 ++++++- .nvmrc | 2 +- package-lock.json | 16 ++++++++-------- package.json | 2 +- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 221938c4..6c7f16c5 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,10 +23,15 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm run lint + - run: npm test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5722b7dd..d9e630ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,16 +12,21 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: '.nvmrc' + - name: Install dependencies run: npm ci + - name: Build run: npm run build + - name: Run Tests run: npm run test + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.nvmrc b/.nvmrc index 209e3ef4..2bd5a0a9 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/package-lock.json b/package-lock.json index 40238849..55ca4a9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "@semantic-release/changelog": "6.0.3", "@semantic-release/git": "10.0.1", "@types/jest": "29.5.14", - "@types/node": "20.16.2", + "@types/node": "22.10.2", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", "eslint": "8.57.1", @@ -3139,13 +3139,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.16.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.2.tgz", - "integrity": "sha512-91s/n4qUPV/wg8eE9KHYW1kouTfDk2FPGjXbBMfRWP/2vg1rCXNQL1OCabwGs0XSdukuK+MwCDXE30QpSeMUhQ==", + "version": "22.10.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", + "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.20.0" } }, "node_modules/@types/normalize-package-data": { @@ -13969,9 +13969,9 @@ } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 8efd07a8..93e4e92e 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@semantic-release/changelog": "6.0.3", "@semantic-release/git": "10.0.1", "@types/jest": "29.5.14", - "@types/node": "20.16.2", + "@types/node": "22.10.2", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", "eslint": "8.57.1",