Skip to content

Commit 1d85b40

Browse files
authored
feat: Upgrade to node 20 (#404)
1 parent 58213b8 commit 1d85b40

File tree

5 files changed

+44
-12
lines changed

5 files changed

+44
-12
lines changed

.github/workflows/dist.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,26 @@ on:
22
push:
33
branches:
44
- release-please--**
5-
name: "Build & Push Dist"
5+
name: 'Build & Push Dist'
66
jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
1111
with:
1212
token: ${{ secrets.INTEGRATIONS_FNM_BOT_TOKEN }}
13+
14+
- name: Setup node 20
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 20.x
18+
1319
- name: install
1420
run: npm ci
21+
1522
- name: build
1623
run: npm run build
24+
1725
- name: update README
1826
run: |-
1927
MAJOR_VERSION=$(cat package.json \
@@ -23,6 +31,7 @@ jobs:
2331
| sed 's/[", ]//g' \
2432
| awk -F. '{ print $1 }')
2533
sed -i "s/\(uses: OctopusDeploy\/install-octopus-cli-action@\).*/\1v${MAJOR_VERSION}/g" README.md
34+
2635
- name: commit
2736
run: |-
2837
git config --global user.name "team-integrations-fnm-bot"

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323

24+
- name: Setup node 20
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 20.x
28+
2429
- name: Install package dependencies
2530
run: npm install
2631

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ inputs:
1212
required: false
1313

1414
runs:
15-
using: 'node16'
15+
using: 'node20'
1616
main: 'dist/index.js'

package-lock.json

Lines changed: 27 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"description": "GitHub Action to Install the Octopus CLI",
1313
"devDependencies": {
1414
"@types/jest": "29.4.0",
15-
"@types/node": "18.11.18",
15+
"@types/node": "20.10.4",
1616
"@types/semver": "7.3.13",
1717
"@types/tmp": "0.2.3",
1818
"@types/uuid": "9.0.0",

0 commit comments

Comments
 (0)