Skip to content

Commit

Permalink
Don't fail if install npm target version fails. (#14274)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Mar 12, 2021
1 parent ac70eb6 commit 885ec8a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ jobs:
${{ runner.os }}-cypress-
- name: 'ENV: display variables'
run: $JHI_SCRIPTS/01-display-configuration.sh
- name: 'TOOLS: install required npm'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);")
- name: 'TOOLS: configure tools installed by the system'
run: $JHI_SCRIPTS/03-system.sh
- name: 'TOOLS: configure git'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/incremental-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ jobs:
${{ runner.os }}-e2e-${{ matrix.app-type }}-
- name: 'ENV: display variables'
run: $JHI_SCRIPTS/01-display-configuration.sh
- name: 'TOOLS: install required npm'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);")
- name: 'TOOLS: configure tools installed by the system'
run: $JHI_SCRIPTS/03-system.sh
- name: 'TOOLS: configure git'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ jobs:
${{ runner.os }}-cypress-
- name: 'ENV: display variables'
run: $JHI_SCRIPTS/01-display-configuration.sh
- name: 'TOOLS: install required npm'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);")
- name: 'TOOLS: configure tools installed by the system'
run: $JHI_SCRIPTS/03-system.sh
- name: 'TOOLS: configure git'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ jobs:
${{ runner.os }}-cypress-
- name: 'ENV: display variables'
run: $JHI_SCRIPTS/01-display-configuration.sh
- name: 'TOOLS: install required npm'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);")
- name: 'TOOLS: configure tools installed by the system'
run: $JHI_SCRIPTS/03-system.sh
- name: 'TOOLS: configure git'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/webflux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ jobs:
${{ runner.os }}-cypress-
- name: 'ENV: display variables'
run: $JHI_SCRIPTS/01-display-configuration.sh
- name: 'TOOLS: install required npm'
run: npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);")
- name: 'TOOLS: configure tools installed by the system'
run: $JHI_SCRIPTS/03-system.sh
- name: 'TOOLS: configure git'
Expand Down
2 changes: 1 addition & 1 deletion test-integration/scripts/10-install-jhipster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [[ "$JHI_REPO" == *"/generator-jhipster" ]]; then

cd "$JHI_HOME"
git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);")
npm install -g npm@$(node -e "console.log(require('./generators/generator-constants').NPM_VERSION);") || true
npm ci
npm install -g "$JHI_HOME"
elif [[ "$JHI_GEN_BRANCH" == "release" ]]; then
Expand Down

0 comments on commit 885ec8a

Please sign in to comment.