Skip to content

Commit

Permalink
chore: switch to node 20
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Nov 1, 2024
1 parent dcee1dc commit 1ffc274
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,24 @@ commands:
label: "1. Build"
component: builder
workingDir: ${PROJECTS_ROOT}/devworkspace-generator
commandLine: yarn && yarn format:fix && yarn build
commandLine: |
nvm use v${NODEJS_20_VERSION}
yarn && yarn format:fix && yarn build
- id: test
exec:
label: "2. Run tests"
component: builder
workingDir: ${PROJECTS_ROOT}/devworkspace-generator
commandLine: yarn test
commandLine: |
nvm use v${NODEJS_20_VERSION}
yarn test
- id: generate-devworkspace
exec:
label: "3. Generate DevWorkspace with Template"
component: builder
workingDir: ${PROJECTS_ROOT}/devworkspace-generator
commandLine: |
nvm use v${NODEJS_20_VERSION}
node lib/entrypoint.js \
--devfile-url:https://github.com/che-samples/java-spring-petclinic/tree/main \
--editor-url:https://raw.githubusercontent.com/eclipse-che/che-operator/refs/heads/main/editors-definitions/che-code-insiders.yaml \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devworkspace-generator-publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
registry-url: 'https://registry.npmjs.org'
scope: '@eclipse-che'
- name: Clone source code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devworkspace-generator-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
registry-url: 'https://registry.npmjs.org'
scope: '@eclipse-che'
- name: "Checkout source code"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.18.0
node-version: 20.18.0
- name: Install yarn deps
run: yarn install
- name: Run eslint
Expand Down

0 comments on commit 1ffc274

Please sign in to comment.