Skip to content

Commit

Permalink
Run/build action with Node 20 (#802)
Browse files Browse the repository at this point in the history
* Upgrade to Node 20

* Updated most dependencies to latest versions

---------

Co-authored-by: Cristian Greco <[email protected]>
  • Loading branch information
chadlwilson and cristiangreco authored Aug 27, 2024
1 parent d02d0a1 commit 7e612b3
Show file tree
Hide file tree
Showing 9 changed files with 5,507 additions and 12,168 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 16
node-version: 20
- run: |
if [ ! -f dist/index.js ]; then
echo "Missing dist file"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
lib
node_modules
.idea
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.13.0
v20.14.0
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v2.0.0

- Updated action to run with Node 20
- Updated action dependencies

## v1.0.20

- Added `auto-merge` input parameter, by @ChrisCarini
Expand Down
5,756 changes: 2,960 additions & 2,796 deletions dist/index.js

Large diffs are not rendered by default.

11,874 changes: 2,521 additions & 9,353 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@
"@actions/http-client": "^2.1.1"
},
"devDependencies": {
"@types/jest": "^27.4.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.5.7",
"@typescript-eslint/parser": "^5.62.0",
"@vercel/ncc": "^0.36.1",
"eslint": "^8.46.0",
"eslint-plugin-github": "^4.10.0",
"eslint-plugin-jest": "^27.2.3",
"jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
"eslint-plugin-github": "^5.0.0-2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.5.0",
"jest": "^29.7.0",
"nock": "^13.3.3",
"prettier": "^3.0.1",
"ts-jest": "^27.1.4",
"typescript": "^4.9.5"
"ts-jest": "^29.1.4",
"typescript": "^5.4.5"
}
}
5 changes: 2 additions & 3 deletions src/tasks/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ export class MainAction {
await gitAuth.setup(this.inputs);

const releaseChannel = this.inputs.releaseChannel;
const targetRelease = await this.releases.fetchReleaseInformation(
releaseChannel
);
const targetRelease =
await this.releases.fetchReleaseInformation(releaseChannel);
core.info(
`Latest release: ${targetRelease.version} (channel ${releaseChannel})`
);
Expand Down
10 changes: 5 additions & 5 deletions tests/inputs/inputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ describe('getInputs', () => {
expect(getInputs()).toMatchInlineSnapshot(`
ActionInputs {
"baseBranch": "",
"labels": Array [],
"labels": [],
"mergeMethod": undefined,
"paths": Array [],
"pathsIgnore": Array [],
"paths": [],
"pathsIgnore": [],
"prTitleTemplate": "Update Gradle Wrapper from %sourceVersion% to %targetVersion%",
"releaseChannel": "stable",
"repoToken": "s3cr3t",
"reviewers": Array [],
"reviewers": [],
"setDistributionChecksum": true,
"targetBranch": "",
"teamReviewers": Array [],
"teamReviewers": [],
}
`);
});
Expand Down

0 comments on commit 7e612b3

Please sign in to comment.