diff --git a/.changes/unreleased/NOTES-20231027-085131.yaml b/.changes/unreleased/NOTES-20231027-085131.yaml new file mode 100644 index 0000000..d7e26fd --- /dev/null +++ b/.changes/unreleased/NOTES-20231027-085131.yaml @@ -0,0 +1,5 @@ +kind: NOTES +body: Updated default runtime to node20 +time: 2023-10-27T08:51:31.923295-04:00 +custom: + Issue: "346" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index bdc2a78..e5198d9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -10,6 +10,13 @@ jobs: check-dist: name: Check dist/ directory uses: actions/reusable-workflows/.github/workflows/check-dist.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189 + with: + node-version: 20.x + node-caching: npm + test: name: Test uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189 + with: + node-version: 20.x + node-caching: npm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa46cbf..0b06020 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 with: - node-version: 18 + node-version: 20 - name: Update package version run: npm version "${{ inputs.versionNumber }}" --git-tag-version false - name: Git push @@ -109,9 +109,9 @@ jobs: run: | git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" - + git tag "${{ inputs.versionNumber }}" - git tag -f "${{ needs.major-version.outputs.version }}" + git tag -f "${{ needs.major-version.outputs.version }}" git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" "${{ inputs.versionNumber }}" git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" -f "${{ needs.major-version.outputs.version }}" diff --git a/action.yml b/action.yml index 0077ecd..9009be1 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ inputs: default: 'true' required: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'terminal' diff --git a/package-lock.json b/package-lock.json index cc6887b..7c0ff61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,10 +17,10 @@ "@hashicorp/js-releases": "^1.7.0" }, "devDependencies": { - "@vercel/ncc": "^0.38.0", + "@vercel/ncc": "^0.38.1", "husky": "^8.0.3", "jest": "^29.7.0", - "nock": "^13.3.4", + "nock": "^13.3.6", "semistandard": "^17.0.0" } }, @@ -1558,9 +1558,9 @@ "dev": true }, "node_modules/@vercel/ncc": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz", - "integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -5002,12 +5002,6 @@ "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -5142,14 +5136,13 @@ "dev": true }, "node_modules/nock": { - "version": "13.3.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.4.tgz", - "integrity": "sha512-DDpmn5oLEdCTclEqweOT4U7bEpuoifBMFUXem9sA4turDAZ5tlbrEoWqCorwXey8CaAw44mst5JOQeVNiwtkhw==", + "version": "13.3.6", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.6.tgz", + "integrity": "sha512-lT6YuktKroUFM+27mubf2uqQZVy2Jf+pfGzuh9N6VwdHlFoZqvi4zyxFTVR1w/ChPqGY6yxGehHp6C3wqCASCw==", "dev": true, "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", "propagate": "^2.0.0" }, "engines": { @@ -7928,9 +7921,9 @@ "dev": true }, "@vercel/ncc": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz", - "integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true }, "acorn": { @@ -10427,12 +10420,6 @@ "p-locate": "^4.1.0" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -10539,14 +10526,13 @@ "dev": true }, "nock": { - "version": "13.3.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.4.tgz", - "integrity": "sha512-DDpmn5oLEdCTclEqweOT4U7bEpuoifBMFUXem9sA4turDAZ5tlbrEoWqCorwXey8CaAw44mst5JOQeVNiwtkhw==", + "version": "13.3.6", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.6.tgz", + "integrity": "sha512-lT6YuktKroUFM+27mubf2uqQZVy2Jf+pfGzuh9N6VwdHlFoZqvi4zyxFTVR1w/ChPqGY6yxGehHp6C3wqCASCw==", "dev": true, "requires": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", "propagate": "^2.0.0" } }, diff --git a/package.json b/package.json index d6650a9..8dd2fe9 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,10 @@ "@hashicorp/js-releases": "^1.7.0" }, "devDependencies": { - "@vercel/ncc": "^0.38.0", + "@vercel/ncc": "^0.38.1", "husky": "^8.0.3", "jest": "^29.7.0", - "nock": "^13.3.4", + "nock": "^13.3.6", "semistandard": "^17.0.0" }, "semistandard": {