From 7b018afa7974f94cc41809c9b0dcb3b845fab28d Mon Sep 17 00:00:00 2001 From: Geoff Lamrock Date: Wed, 13 Dec 2023 21:15:41 +1100 Subject: [PATCH] Upgrade to node 20 --- .github/workflows/dist.yml | 11 ++++++++++- .github/workflows/test.yml | 5 +++++ action.yml | 2 +- package-lock.json | 36 +++++++++++++++++++++++++++--------- package.json | 2 +- 5 files changed, 44 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 5df8948b..d9b7c22c 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -2,7 +2,7 @@ on: push: branches: - release-please--** -name: "Build & Push Dist" +name: 'Build & Push Dist' jobs: build: runs-on: ubuntu-latest @@ -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\/install-octopus-cli-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 dab2d33e..821ab5e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,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 aea79f6a..9e291c99 100644 --- a/action.yml +++ b/action.yml @@ -12,5 +12,5 @@ inputs: required: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 68e36a0c..db33d9a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@types/jest": "29.4.0", - "@types/node": "18.11.18", + "@types/node": "20.10.4", "@types/semver": "7.3.13", "@types/tmp": "0.2.3", "@types/uuid": "9.0.0", @@ -1328,10 +1328,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", @@ -4873,6 +4876,12 @@ "node": ">=4.2.0" } }, + "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", @@ -6097,10 +6106,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", @@ -8652,6 +8664,12 @@ "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", "dev": true }, + "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 0935c12f..32de445f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "description": "GitHub Action to Install the Octopus CLI", "devDependencies": { "@types/jest": "29.4.0", - "@types/node": "18.11.18", + "@types/node": "20.10.4", "@types/semver": "7.3.13", "@types/tmp": "0.2.3", "@types/uuid": "9.0.0",