Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgrade to node 20 #18

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ jobs:
- 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\/create-zip-package-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 @@ -18,6 +18,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 @@ -29,5 +29,5 @@ outputs:
description: 'The filename, without the path, of the file that was created.'

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
89 changes: 62 additions & 27 deletions dist/index.js

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

50 changes: 34 additions & 16 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"dependencies": {
"@actions/core": "^1.10.0",
"@octopusdeploy/api-client": "^v3.0.4",
"@octopusdeploy/api-client": "^3.2.0",
"glob": "^8.1.0"
},
"description": "GitHub Action to create a Zip package for Octopus Deploy",
Expand All @@ -14,7 +14,7 @@
"@types/jest": "^29.4.0",
"@types/json-patch": "^0.0.30",
"@types/lodash": "^4.14.191",
"@types/node": "^18.11.18",
"@types/node": "^20.10.4",
"@types/tmp": "^0.2.3",
"@typescript-eslint/parser": "^5.49.0",
"@vercel/ncc": "^0.36.1",
Expand Down