Skip to content

Commit

Permalink
Upgrade to node 22 (#168)
Browse files Browse the repository at this point in the history
* Fix CI
* Update npm
* Upgrade to node 22
* update doc
* update workflow

Signed-off-by: Tristan Chuine <[email protected]>
  • Loading branch information
Tristan-WorkGH authored Feb 21, 2025
1 parent 1d8b50b commit fe902b0
Show file tree
Hide file tree
Showing 5 changed files with 1,326 additions and 202 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
license-headers:
name: Check licenses headers
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v3
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version: 22
- name: Check License Header (Check Mode)
uses: apache/skywalking-eyes/[email protected]
with:
Expand All @@ -26,18 +26,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version: 22
- name: FixForNodeWarnings
run: |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- name: Build
run: |
npm install
npm ci
npm run licenses-check
npm run lint
npm run test:coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

jobs:
run-release:
uses: powsybl/github-ci/.github/workflows/release-frontend-lib-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5
uses: powsybl/github-ci/.github/workflows/release-frontend-lib-generic.yml@9badadfb5917a5faddeb8dd5ccac452429a906d1
with:
versionType: ${{ github.event.inputs.versionType }}
nodeAuthToken: ${{ github.event.inputs.nodeAuthToken }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This library contains three viewers:
- network-map-viewer, to display the substations / voltage levels on a map

The library is built with the Vite bundler.
Node from v18+ is required to build with Vite.
Node from v22+ is required to build with Vite.

Installation using npm:
'npm install @powsybl/network-viewer'
Expand Down
Loading

0 comments on commit fe902b0

Please sign in to comment.