From 05471d4467f6121ef7bca8ea64f8ce548ea8a09f Mon Sep 17 00:00:00 2001 From: Tim Ermilov Date: Mon, 4 Dec 2023 12:48:47 +0100 Subject: [PATCH] [ci] Change to Node 18 in github actions Nock + streams (got?) seems to be currently broken with Node 20 --- .github/workflows/prerelease.yml | 10 ++-- .github/workflows/test.yml | 6 +-- .github/workflows/website.yml | 2 +- package-lock.json | 79 ++++++++++++++++++++++++++---- packages/exoframe-cli/package.json | 4 +- 5 files changed, 81 insertions(+), 20 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 520b516..d7b3426 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' registry-url: 'https://registry.npmjs.org' # get versions for currently published and local packages @@ -38,7 +38,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' registry-url: 'https://registry.npmjs.org' # get versions for currently published and local packages @@ -66,7 +66,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' registry-url: 'https://registry.npmjs.org' # get versions for currently published and local packages @@ -129,7 +129,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' registry-url: 'https://registry.npmjs.org' # get versions for currently published and local packages @@ -154,7 +154,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' registry-url: 'https://registry.npmjs.org' # get versions for currently published and local packages diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 751e695..3e0b304 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' - name: install run: npm ci @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' - name: install run: npm ci @@ -44,7 +44,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' - name: install run: npm ci diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 9bfb373..6fd2bd3 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 18 cache: 'npm' - name: install run: npm ci diff --git a/package-lock.json b/package-lock.json index 6511de9..d7cccf0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10218,9 +10218,9 @@ } }, "node_modules/http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz", + "integrity": "sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==", "dependencies": { "quick-lru": "^5.1.1", "resolve-alpn": "^1.2.0" @@ -14135,14 +14135,13 @@ } }, "node_modules/nock": { - "version": "13.3.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.4.tgz", - "integrity": "sha512-DDpmn5oLEdCTclEqweOT4U7bEpuoifBMFUXem9sA4turDAZ5tlbrEoWqCorwXey8CaAw44mst5JOQeVNiwtkhw==", + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.4.0.tgz", + "integrity": "sha512-W8NVHjO/LCTNA64yxAPHV/K47LpGYcVzgKd3Q0n6owhwvD0Dgoterc25R4rnZbckJEb6Loxz1f5QMuJpJnbSyQ==", "dev": true, "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", "propagate": "^2.0.0" }, "engines": { @@ -20450,7 +20449,7 @@ "cli-table3": "^0.6.3", "commander": "^11.1.0", "exoframe-client": "^7.0.0-pre", - "got": "^13.0.0", + "got": "^14.0.0", "inquirer": "^9.2.11", "lodash": "^4.17.21", "open": "^9.1.0", @@ -20465,7 +20464,7 @@ "eslint-config-standard": "^17.1.0", "eslint-plugin-prettier": "^5.0.1", "mock-stdin": "^1.0.0", - "nock": "^13.3.4", + "nock": "^13.4.0", "prettier": "^3.0.3", "tar-fs": "^3.0.4", "vitest": "^0.34.6" @@ -20474,6 +20473,68 @@ "node": ">=20" } }, + "packages/exoframe-cli/node_modules/@sindresorhus/is": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-6.1.0.tgz", + "integrity": "sha512-BuvU07zq3tQ/2SIgBsEuxKYDyDjC0n7Zir52bpHy2xnBbW81+po43aLFPLbeV3HRAheFbGud1qgcqSYfhtHMAg==", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "packages/exoframe-cli/node_modules/form-data-encoder": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-4.0.2.tgz", + "integrity": "sha512-KQVhvhK8ZkWzxKxOr56CPulAhH3dobtuQ4+hNQ+HekH/Wp5gSOafqRAeTphQUJAIk0GBvHZgJ2ZGRWd5kphMuw==", + "engines": { + "node": ">= 18" + } + }, + "packages/exoframe-cli/node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "packages/exoframe-cli/node_modules/got": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/got/-/got-14.0.0.tgz", + "integrity": "sha512-X01vTgaX9SwaMq5DfImvS+3GMQFFs5HtrrlS9CuzUSzkxAf/tWGEyynuI+Qy7BjciMczZGjyVSmawYbP4eYhYA==", + "dependencies": { + "@sindresorhus/is": "^6.1.0", + "@szmarczak/http-timer": "^5.0.1", + "cacheable-lookup": "^7.0.0", + "cacheable-request": "^10.2.14", + "decompress-response": "^6.0.0", + "form-data-encoder": "^4.0.2", + "get-stream": "^8.0.1", + "http2-wrapper": "^2.2.1", + "lowercase-keys": "^3.0.0", + "p-cancelable": "^4.0.1", + "responselike": "^3.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "packages/exoframe-cli/node_modules/p-cancelable": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-4.0.1.tgz", + "integrity": "sha512-wBowNApzd45EIKdO1LaU+LrMBwAcjfPaYtVzV3lmfM3gf8Z4CHZsiIqlM8TZZ8okYvh5A1cP6gTfCRQtwUpaUg==", + "engines": { + "node": ">=14.16" + } + }, "packages/exoframe-client": { "version": "7.0.0-pre-alpha.1", "license": "MIT", diff --git a/packages/exoframe-cli/package.json b/packages/exoframe-cli/package.json index e166f43..a9faa0d 100644 --- a/packages/exoframe-cli/package.json +++ b/packages/exoframe-cli/package.json @@ -22,7 +22,7 @@ "cli-table3": "^0.6.3", "commander": "^11.1.0", "exoframe-client": "^7.0.0-pre", - "got": "^13.0.0", + "got": "^14.0.0", "inquirer": "^9.2.11", "lodash": "^4.17.21", "open": "^9.1.0", @@ -37,7 +37,7 @@ "eslint-config-standard": "^17.1.0", "eslint-plugin-prettier": "^5.0.1", "mock-stdin": "^1.0.0", - "nock": "^13.3.4", + "nock": "^13.4.0", "prettier": "^3.0.3", "tar-fs": "^3.0.4", "vitest": "^0.34.6"