From 34d2d073dfc45d3b4f95b5ed88cee1c1e177ed34 Mon Sep 17 00:00:00 2001 From: Geoff Lamrock Date: Thu, 14 Dec 2023 11:13:49 +1100 Subject: [PATCH] feat: Upgrade to node 20 (#32) --- .github/workflows/dist.yml | 9 +++++++ .github/workflows/test.yml | 5 ++++ action.yml | 2 +- package-lock.json | 50 ++++++++++++++++++++++++++------------ package.json | 4 +-- 5 files changed, 51 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index b7fcec7d..1dd1847a 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-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 829c54e9..3443c6ee 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 9a8d6ce8..21b923bb 100644 --- a/action.yml +++ b/action.yml @@ -32,5 +32,5 @@ outputs: description: 'JSON string for an array of objects having a `serverTaskId` and an `environmentName`' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package-lock.json b/package-lock.json index 832a9d78..18477ad1 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.4.0", "@types/json-patch": "^0.0.30", "@types/lodash": "^4.14.191", - "@types/node": "^18.11.18", + "@types/node": "^20.10.4", "@types/tmp": "^0.2.3", "@typescript-eslint/parser": "^5.49.0", "@vercel/ncc": "^0.36.1", @@ -1226,9 +1226,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", @@ -1390,10 +1390,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", - "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.2", @@ -6257,6 +6260,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", @@ -7427,9 +7436,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", @@ -7588,10 +7597,13 @@ "dev": true }, "@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", - "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.2", @@ -11120,6 +11132,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 3a6b7b38..5d80572e 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.4.0", "@types/json-patch": "^0.0.30", "@types/lodash": "^4.14.191", - "@types/node": "^18.11.18", + "@types/node": "^20.10.4", "@types/tmp": "^0.2.3", "@typescript-eslint/parser": "^5.49.0", "@vercel/ncc": "^0.36.1",