Skip to content

Commit c184541

Browse files
authored
[WIP] chore: fix CI/CT pipelines (#1418)
### Description fix CI/CT pipelines while on it, increase debug logs ### AI Tool Disclosure - [x] My contribution does not include any AI-generated content - [ ] My contribution includes AI-generated content, as disclosed below: - AI Tools: `[e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.]` - LLMs and versions: `[e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.]` - Prompts: `[Summarize the key prompts or instructions given to the AI tools]` ### Affirmation - [x] My code follows the [CONTRIBUTING.md](https://github.com/CycloneDX/cyclonedx-javascript-library/blob/main/CONTRIBUTING.md) guidelines --------- Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 59c7c7f commit c184541

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
node-version: ${{ env.NODE_ACTIVE_LTS }}
5050
package-manager-cache: false
5151
- name: setup project
52-
run: npm i --ignore-scripts --include=optional --loglevel=silly
52+
run: npm install --ignore-scripts --include=optional --loglevel=silly
5353
- name: build ${{ matrix.target }}
5454
run: npm run build:${{ matrix.target }}
5555
- name: artifact build result
@@ -75,7 +75,7 @@ jobs:
7575
node-version: ${{ env.NODE_ACTIVE_LTS }}
7676
package-manager-cache: false
7777
- name: setup project
78-
run: npm i --ignore-scripts --include=optional --loglevel=silly
78+
run: npm install --ignore-scripts --include=optional --loglevel=silly
7979
- name: test
8080
run: npm run test:lint
8181

@@ -204,13 +204,15 @@ jobs:
204204
run:
205205
case "$NODE_VERSION" in
206206
'25' )
207-
npm install -g npm@latest
207+
npm install --loglevel=silly -g npm@latest
208208
;;
209-
'24' | '22')
210-
npm i -g npm@^11
209+
'24' )
210+
npm install --loglevel=silly -g npm@^11
211+
;;
212+
'22' )
211213
;;
212214
'20' | '20.18.0')
213-
npm i -g npm@^10
215+
npm install --loglevel=silly -g npm@^10
214216
;;
215217
esac
216218
- name: setup project
@@ -220,7 +222,7 @@ jobs:
220222
run: |
221223
set -ex
222224
echo "::group::install project"
223-
npm i --ignore-scripts --include=optional --include=dev --loglevel=silly
225+
npm install --ignore-scripts --include=optional --include=dev --loglevel=silly
224226
echo "::endgroup::"
225227
## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
226228
echo "::group::rebuild libxmljs2"
@@ -272,11 +274,11 @@ jobs:
272274
set -ex
273275
dev_constraints=' npm-run-all2 c8 mocha fast-glob memfs rimraf '
274276
echo "::group::install prod"
275-
npm i --ignore-scripts --omit=optional --omit=dev --loglevel=silly
277+
npm install --ignore-scripts --omit=optional --omit=dev --loglevel=silly
276278
echo "::endgroup::"
277279
echo "::group::install dev"
278280
## install the needed dev-deps
279-
npm i --ignore-scripts --omit=optional --no-save --loglevel=silly $dev_constraints
281+
npm install --ignore-scripts --omit=optional --no-save --loglevel=silly $dev_constraints
280282
echo "::endgroup::"
281283
- name: fetch build artifact
282284
# see https://github.com/actions/download-artifact
@@ -356,14 +358,14 @@ jobs:
356358
run: |
357359
set -ex
358360
echo "::group::install"
359-
npm i --ignore-scripts --omit=dev --include=optional --loglevel=silly
361+
npm install --ignore-scripts --omit=dev --include=optional --loglevel=silly
360362
echo "::endgroup::"
361363
echo "::group::setup libxml2"
362364
## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
363365
npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2
364366
echo "::endgroup::"
365367
- name: setup example project
366-
run: npm i --no-save --loglevel=silly
368+
run: npm install --no-save --loglevel=silly
367369
working-directory: ${{ env.EXAMPLE_DIR }}
368370
- name: run example
369371
run: node -- 'example.${{ matrix.js-type }}'
@@ -414,21 +416,21 @@ jobs:
414416
run: |
415417
set -ex
416418
echo "::group::install"
417-
npm i --ignore-scripts --omit=dev --include=optional --loglevel=silly
419+
npm install --ignore-scripts --omit=dev --include=optional --loglevel=silly
418420
echo "::endgroup::"
419421
echo "::group::setup libxml2"
420422
## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
421423
npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2
422424
echo "::endgroup::"
423425
- name: setup example project
424-
run: npm i --no-save --loglevel=silly 'typescript@${{ matrix.typescript-version }}'
426+
run: npm install --no-save --loglevel=silly 'typescript@${{ matrix.typescript-version }}'
425427
working-directory: ${{ env.EXAMPLE_DIR }}
426428
- name: get TS-version
427429
id: ts_version
428430
run: node -p '`v=ts${require("typescript").version.split(".",2).join(".")}`' >> "$GITHUB_OUTPUT"
429431
working-directory: ${{ env.EXAMPLE_DIR }}
430432
- name: adjust @types/node version
431-
run: npm i --no-save --loglevel=silly '@types/node@${{ matrix.nodeTypes-version || steps.ts_version.outputs.v}}'
433+
run: npm install --no-save --loglevel=silly '@types/node@${{ matrix.nodeTypes-version || steps.ts_version.outputs.v}}'
432434
working-directory: ${{ env.EXAMPLE_DIR }}
433435
- name: build example
434436
run: npm run build
@@ -466,9 +468,9 @@ jobs:
466468
name: dist.web
467469
path: dist.web
468470
- name: setup library
469-
run: npm i --ignore-scripts --omit=dev --include=optional --loglevel=silly
471+
run: npm install --ignore-scripts --omit=dev --include=optional --loglevel=silly
470472
- name: setup example project
471-
run: npm i --no-save --loglevel=silly
473+
run: npm install --no-save --loglevel=silly
472474
working-directory: ${{ env.EXAMPLE_DIR }}
473475
- name: build example
474476
run: npm run build

0 commit comments

Comments
 (0)