mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-15 16:12:35 +00:00
feat: bump to use node20 runtime (#346)
* feat: bump to use node20 runtime Signed-off-by: Rui Chen <rui@chenrui.dev> fix action refs for `actions/reusable-workflows` Signed-off-by: Rui Chen <rui@chenrui.dev> * docs: update changelog Signed-off-by: Rui Chen <rui@chenrui.dev> * workflows: update `actions/reusable-workflows` to use node20 Signed-off-by: Rui Chen <rui@chenrui.dev> * chore: update dist file * clean up PR for merge * add node version * update dist * switch changelog --------- Signed-off-by: Rui Chen <rui@chenrui.dev> Co-authored-by: Austin Valle <austinvalle@gmail.com>
This commit is contained in:
parent
599d383196
commit
9507e1d5bb
4 changed files with 16 additions and 4 deletions
5
.changes/unreleased/NOTES-20231027-085131.yaml
Normal file
5
.changes/unreleased/NOTES-20231027-085131.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
kind: NOTES
|
||||||
|
body: Updated default runtime to node20
|
||||||
|
time: 2023-10-27T08:51:31.923295-04:00
|
||||||
|
custom:
|
||||||
|
Issue: "346"
|
||||||
7
.github/workflows/continuous-integration.yml
vendored
7
.github/workflows/continuous-integration.yml
vendored
|
|
@ -10,6 +10,13 @@ jobs:
|
||||||
check-dist:
|
check-dist:
|
||||||
name: Check dist/ directory
|
name: Check dist/ directory
|
||||||
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
|
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
node-caching: npm
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
|
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
|
||||||
|
with:
|
||||||
|
node-version: 20.x
|
||||||
|
node-caching: npm
|
||||||
|
|
|
||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -79,7 +79,7 @@ jobs:
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
- name: Update package version
|
- name: Update package version
|
||||||
run: npm version "${{ inputs.versionNumber }}" --git-tag-version false
|
run: npm version "${{ inputs.versionNumber }}" --git-tag-version false
|
||||||
- name: Git push
|
- name: Git push
|
||||||
|
|
@ -109,9 +109,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
|
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
|
||||||
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
|
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
|
||||||
|
|
||||||
git tag "${{ inputs.versionNumber }}"
|
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" "${{ 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 }}"
|
git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" -f "${{ needs.major-version.outputs.version }}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ inputs:
|
||||||
default: 'true'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node20'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
branding:
|
branding:
|
||||||
icon: 'terminal'
|
icon: 'terminal'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue