diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 914f01a..4202c29 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -10,10 +10,17 @@ 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 +30,7 @@ jobs: | sed 's/[", ]//g' \ | awk -F. '{ print $1 }') sed -i "s/\(uses: OctopusDeploy\/push-package-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 70c409d..e43c3cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,6 +51,11 @@ jobs: with: version: '*' + - 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 fd96b39..fb5fe46 100644 --- a/action.yml +++ b/action.yml @@ -20,5 +20,5 @@ inputs: description: 'The name or ID of a space within which this command will be executed. If omitted, the default space will be used.' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package-lock.json b/package-lock.json index 59b2976..3b79c0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@actions/core": "^1.10.0", - "@octopusdeploy/api-client": "^3.1.0", + "@octopusdeploy/api-client": "^3.2.0", "glob": "^8.1.0" }, "devDependencies": { @@ -18,7 +18,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", @@ -1228,9 +1228,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", @@ -7589,10 +7598,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", @@ -11121,6 +11133,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 a9f303b..740712a 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", "glob": "^8.1.0" }, "description": "GitHub Action to Push a Package to Octopus Deploy", @@ -14,7 +14,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", @@ -87,4 +87,4 @@ "test:integration": "jest --ci --reporters=default --reporters=jest-junit --testPathPattern=__tests__/integration" }, "version": "3.1.0" -} \ No newline at end of file +}