Skip to content

Commit

Permalink
Upgrade to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflamrock committed Dec 13, 2023
1 parent 58213b8 commit 7b018af
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 12 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@ on:
push:
branches:
- release-please--**
name: "Build & Push Dist"
name: 'Build & Push Dist'
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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 \
Expand All @@ -23,6 +31,7 @@ jobs:
| sed 's/[", ]//g' \
| awk -F. '{ print $1 }')
sed -i "s/\(uses: OctopusDeploy\/install-octopus-cli-action@\).*/\1v${MAJOR_VERSION}/g" README.md
- name: commit
run: |-
git config --global user.name "team-integrations-fnm-bot"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup node 20
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Install package dependencies
run: npm install

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ inputs:
required: false

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
36 changes: 27 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "GitHub Action to Install the Octopus CLI",
"devDependencies": {
"@types/jest": "29.4.0",
"@types/node": "18.11.18",
"@types/node": "20.10.4",
"@types/semver": "7.3.13",
"@types/tmp": "0.2.3",
"@types/uuid": "9.0.0",
Expand Down

0 comments on commit 7b018af

Please sign in to comment.