Skip to content

Commit

Permalink
Updated node and dependencies (#111)
Browse files Browse the repository at this point in the history
Updated node to version `20` and updated all the dependencies to their
latest version.
  • Loading branch information
Bullrich authored Jan 23, 2024
1 parent 4ea0044 commit 5f58f48
Show file tree
Hide file tree
Showing 5 changed files with 324 additions and 325 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/javascript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use node 18
- name: Use node 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- uses: c-hive/gha-yarn-cache@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use node 18
- name: Use node 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- uses: c-hive/gha-yarn-cache@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -33,10 +33,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use node 18
- name: Use node 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- uses: c-hive/gha-yarn-cache@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -46,10 +46,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use node 18
- name: Use node 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- uses: c-hive/gha-yarn-cache@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18 as Builder
FROM node:20 as Builder

WORKDIR /action

Expand All @@ -10,7 +10,7 @@ COPY . .

RUN yarn run build

FROM node:18-slim
FROM node:20-slim

COPY --from=Builder /action/dist /action

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ yarn run cli ".github/review-bot.yml" # set the parameter as the location of the
```
It will inform you if you have any types of errors.
## Developing
We use `yarn` package manager and `node 18`.
We use `yarn` package manager and `node 20`.
- Use `yarn install` to install the dependencies.
- Use `yarn build` to build the project.
- Use `yarn test` to run tests on all the `*.test.ts` files.
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint '{src,test}/**/*'"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"repository": {
"type": "git",
Expand All @@ -27,19 +27,19 @@
"devDependencies": {
"@eng-automation/js-style": "^2.3.0",
"@octokit/webhooks-types": "^7.3.1",
"@types/jest": "^29.5.5",
"@vercel/ncc": "^0.38.0",
"@types/jest": "^29.5.11",
"@vercel/ncc": "^0.38.1",
"jest": "^29.7.0",
"jest-mock-extended": "^3.0.5",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@eng-automation/js": "^1.0.2",
"@polkadot/api": "^10.10.1",
"joi": "^17.11.0",
"yaml": "^2.3.3"
"@polkadot/api": "^10.11.2",
"joi": "^17.12.0",
"yaml": "^2.3.4"
}
}
Loading

0 comments on commit 5f58f48

Please sign in to comment.