From 77b785ec25deb8d335f27a594df01a89f84f22eb Mon Sep 17 00:00:00 2001 From: Geoff Lamrock Date: Thu, 14 Dec 2023 11:13:31 +1100 Subject: [PATCH] feat: Upgrade to node 20 (#30) --- .github/workflows/dist.yml | 9 +++++++ .github/workflows/test.yml | 5 ++++ action.yml | 2 +- package-lock.json | 50 ++++++++++++++++++++++++++------------ package.json | 6 ++--- 5 files changed, 52 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index c1b8285c..d107cc40 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -10,10 +10,18 @@ jobs: - uses: actions/checkout@v3 with: token: ${{ secrets.INTEGRATIONS_FNM_BOT_TOKEN }} + + - name: Setup node 20 + uses: actions/setup-node@v3 + with: + node-version: 20.x + - name: install run: npm ci + - name: build run: npm run build + - name: update README run: |- MAJOR_VERSION=$(cat package.json \ @@ -23,6 +31,7 @@ jobs: | sed 's/[", ]//g' \ | awk -F. '{ print $1 }') sed -i "s/\(uses: OctopusDeploy\/deploy-release-tenanted-action@\).*/\1v${MAJOR_VERSION}/g" README.md + - name: commit run: |- git config --global user.name "team-integrations-fnm-bot" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 13a284c2..97a48cf6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,6 +50,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Setup node 20 + uses: actions/setup-node@v3 + with: + node-version: 20.x + - name: Install package dependencies run: npm install diff --git a/action.yml b/action.yml index 39499199..c2edd37f 100644 --- a/action.yml +++ b/action.yml @@ -36,5 +36,5 @@ outputs: description: 'JSON string for an array of objects having a `serverTaskId` and an `tenantName`' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package-lock.json b/package-lock.json index 7c80e784..f40ea28d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,14 +10,14 @@ "license": "Apache-2.0", "dependencies": { "@actions/core": "^1.10.0", - "@octopusdeploy/api-client": "^3.1.0" + "@octopusdeploy/api-client": "^3.2.0" }, "devDependencies": { "@octopusdeploy/runtime-inputs": "^0.16.0", "@types/jest": "^29.2.4", "@types/json-patch": "^0.0.30", "@types/lodash": "^4.14.191", - "@types/node": "^18.11.13", + "@types/node": "^20.10.4", "@types/tmp": "^0.2.3", "@typescript-eslint/parser": "^5.46.1", "@vercel/ncc": "^0.36.0", @@ -1238,9 +1238,9 @@ } }, "node_modules/@octopusdeploy/api-client": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@octopusdeploy/api-client/-/api-client-3.1.0.tgz", - "integrity": "sha512-n/HtwCExJdTYOHdFb47+y2bN7MOPIDayNAXZZtWqKMTxHmXN2sqYNq5NS/SVHvFYsbxFi/hpNlrwpLufg8mOWQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@octopusdeploy/api-client/-/api-client-3.2.0.tgz", + "integrity": "sha512-0TrbsXaFc/Xi3yfsEEAvf5mOveZx4K347LmBRwCuLd2pLl8tj3NJYJn7nRzz3kr4j6o46oUv1RukemEXqu91Dg==", "dependencies": { "adm-zip": "^0.5.9", "axios": "^1.2.1", @@ -1402,10 +1402,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.11.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.13.tgz", - "integrity": "sha512-IASpMGVcWpUsx5xBOrxMj7Bl8lqfuTY7FKAnPmu5cHkfQVWF8GulWS1jbRqA934qZL35xh5xN/+Xe/i26Bod4w==", - "dev": true + "version": "20.10.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz", + "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/prettier": { "version": "2.7.1", @@ -6008,6 +6011,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/update-browserslist-db": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", @@ -7151,9 +7160,9 @@ } }, "@octopusdeploy/api-client": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@octopusdeploy/api-client/-/api-client-3.1.0.tgz", - "integrity": "sha512-n/HtwCExJdTYOHdFb47+y2bN7MOPIDayNAXZZtWqKMTxHmXN2sqYNq5NS/SVHvFYsbxFi/hpNlrwpLufg8mOWQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@octopusdeploy/api-client/-/api-client-3.2.0.tgz", + "integrity": "sha512-0TrbsXaFc/Xi3yfsEEAvf5mOveZx4K347LmBRwCuLd2pLl8tj3NJYJn7nRzz3kr4j6o46oUv1RukemEXqu91Dg==", "requires": { "adm-zip": "^0.5.9", "axios": "^1.2.1", @@ -7312,10 +7321,13 @@ "dev": true }, "@types/node": { - "version": "18.11.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.13.tgz", - "integrity": "sha512-IASpMGVcWpUsx5xBOrxMj7Bl8lqfuTY7FKAnPmu5cHkfQVWF8GulWS1jbRqA934qZL35xh5xN/+Xe/i26Bod4w==", - "dev": true + "version": "20.10.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz", + "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/prettier": { "version": "2.7.1", @@ -10635,6 +10647,12 @@ "which-boxed-primitive": "^1.0.2" } }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "update-browserslist-db": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", diff --git a/package.json b/package.json index 87b4412f..74c28737 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ }, "dependencies": { "@actions/core": "^1.10.0", - "@octopusdeploy/api-client": "^3.1.0" + "@octopusdeploy/api-client": "^3.2.0" }, "description": "GitHub Action to Create a Release in Octopus Deploy", "devDependencies": { @@ -13,7 +13,7 @@ "@types/jest": "^29.2.4", "@types/json-patch": "^0.0.30", "@types/lodash": "^4.14.191", - "@types/node": "^18.11.13", + "@types/node": "^20.10.4", "@types/tmp": "^0.2.3", "@typescript-eslint/parser": "^5.46.1", "@vercel/ncc": "^0.36.0", @@ -85,4 +85,4 @@ "test:integration": "jest --ci --reporters=default --reporters=jest-junit --testPathPattern=__tests__/integration" }, "version": "3.1.0" -} \ No newline at end of file +}