Skip to content

Commit

Permalink
build(nodejs): bump minimal nodejs and npm versions
Browse files Browse the repository at this point in the history
- Add script `tools/bump-package-engines.ts` to update minimal node and npm
    versions in all cacti packages.
- Set minimal node to 18 and npm to 8 in all cacti packages.
- Add env variable `NODEJS_VERSION` in CI scripts to centralize nodejs setup.
- Change default nodejs in CI to v18.18.2
- Minor formatting fixes - sorted package.json, remove whitespaces

Signed-off-by: Michal Bajer <[email protected]>
  • Loading branch information
outSH committed Nov 16, 2023
1 parent 5a59236 commit 599d64a
Show file tree
Hide file tree
Showing 84 changed files with 788 additions and 591 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/.dast-nuclei-cmd-api-server.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: DAST_Scan_Nuclei

env:
NODEJS_VERSION: v18.18.2

on:
push:
branches: [main, dev]
Expand All @@ -23,10 +26,10 @@ jobs:
indy-cli \
&& sudo rm -f /etc/apt/sources.list.d/sovrin.list*
- name: Set up NodeJS v16.9.1
- name: Set up NodeJS ${{ env.NODEJS_VERSION }}
uses: actions/[email protected]
with:
node-version: v16.9.1
node-version: ${{ env.NODEJS_VERSION }}

- name: Install jq
run: sudo apt update && sudo apt install -y jq
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: all-nodejs-packages-publish

env:
NODEJS_VERSION: v18.18.2

on:
push:

Expand All @@ -21,7 +24,7 @@ jobs:
- uses: actions/[email protected]
with:
always-auth: true
node-version: '16.14.2'
node-version: ${{ env.NODEJS_VERSION }}
registry-url: 'https://registry.npmjs.org'
- name: ./tools/ci.sh
run: ./tools/ci.sh
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/cacti-dev-container-vscode-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: connector-fabric-publish

env:
NODEJS_VERSION: v20.3.0

on:
push:
# Publish `v1.2.3` tags as releases.
Expand Down Expand Up @@ -27,10 +30,10 @@ jobs:
contents: read

steps:
- name: Use Node.js v20.3.0
- name: Use Node.js ${{ env.NODEJS_VERSION }}
uses: actions/[email protected]
with:
node-version: v20.3.0
node-version: ${{ env.NODEJS_VERSION }}

- uses: actions/[email protected]

Expand Down
Loading

0 comments on commit 599d64a

Please sign in to comment.