Skip to content

Commit

Permalink
refactor: bump to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Apr 2, 2024
1 parent 7cecb00 commit f007394
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dhis2-preview-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 20.x

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile

- run: yarn build:legacy
- run: yarn build

- name: Deploy
id: netlify-deploy
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/dhis2-verify-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 20.x

- uses: c-hive/gha-yarn-cache@v1
- run: |
yarn install --frozen-lockfile
NODE_OPTIONS=--openssl-legacy-provider yarn setup
yarn setup
- name: Build
run: NODE_OPTIONS=--openssl-legacy-provider yarn build
run: yarn build

- run: ./scripts/create-artifact.sh

Expand All @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 20.x

- uses: actions/download-artifact@v2
with:
Expand All @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 20.x

- uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 20.x

- uses: actions/download-artifact@v2
with:
Expand All @@ -112,7 +112,7 @@ jobs:
uses: cypress-io/github-action@v6
with:
# This should be a command that starts the server to test against.
start: 'yarn cy:start:legacy'
start: 'yarn cy:start'
wait-on: 'http://localhost:5000'
wait-on-timeout: 300
record: true
Expand All @@ -136,7 +136,7 @@ jobs:
token: ${{env.GH_TOKEN}}
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: 'yarn'

- uses: actions/download-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@
"scripts": {
"setup": "./scripts/setup.js",
"build": "./scripts/build-world.sh",
"build:legacy": "NODE_OPTIONS=--openssl-legacy-provider ./scripts/build-world.sh",
"build:lib": "./scripts/build.js",
"build:docs": "./scripts/build-docs.js",
"build:api": "./scripts/generate-api-docs.js",
"cy:start:legacy": "NODE_OPTIONS=--openssl-legacy-provider yarn cy:start",
"cy:start": "yarn build:lib && STORYBOOK_TESTING=1 yarn start",
"cy:open": "wait-on 'http://localhost:5000' && cypress open",
"cy:run": "wait-on 'http://localhost:5000' && cypress run --config-file=cypress.config.js",
Expand Down

0 comments on commit f007394

Please sign in to comment.