Skip to content

Commit 9507e1d

Browse files
feat: bump to use node20 runtime (#346)
* feat: bump to use node20 runtime Signed-off-by: Rui Chen <[email protected]> fix action refs for `actions/reusable-workflows` Signed-off-by: Rui Chen <[email protected]> * docs: update changelog Signed-off-by: Rui Chen <[email protected]> * workflows: update `actions/reusable-workflows` to use node20 Signed-off-by: Rui Chen <[email protected]> * chore: update dist file * clean up PR for merge * add node version * update dist * switch changelog --------- Signed-off-by: Rui Chen <[email protected]> Co-authored-by: Austin Valle <[email protected]>
1 parent 599d383 commit 9507e1d

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: NOTES
2+
body: Updated default runtime to node20
3+
time: 2023-10-27T08:51:31.923295-04:00
4+
custom:
5+
Issue: "346"

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ jobs:
1010
check-dist:
1111
name: Check dist/ directory
1212
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
13+
with:
14+
node-version: 20.x
15+
node-caching: npm
16+
1317
test:
1418
name: Test
1519
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
20+
with:
21+
node-version: 20.x
22+
node-caching: npm

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Set up Node.js
8080
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
8181
with:
82-
node-version: 18
82+
node-version: 20
8383
- name: Update package version
8484
run: npm version "${{ inputs.versionNumber }}" --git-tag-version false
8585
- name: Git push
@@ -109,9 +109,9 @@ jobs:
109109
run: |
110110
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
111111
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
112-
112+
113113
git tag "${{ inputs.versionNumber }}"
114-
git tag -f "${{ needs.major-version.outputs.version }}"
114+
git tag -f "${{ needs.major-version.outputs.version }}"
115115
git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" "${{ inputs.versionNumber }}"
116116
git push "https://${{ env.CI_COMMIT_AUTHOR }}:${{ secrets.TF_DEVEX_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" -f "${{ needs.major-version.outputs.version }}"
117117

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inputs:
1818
default: 'true'
1919
required: false
2020
runs:
21-
using: 'node16'
21+
using: 'node20'
2222
main: 'dist/index.js'
2323
branding:
2424
icon: 'terminal'

0 commit comments

Comments
 (0)