forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(nodejs): bump minimal nodejs and npm versions
- 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, removed whitespaces. - Use socket.io-client-fixed-types in sawtooth connector to fix ESM import error - Change node-fetch to 2.7.0 (still supported) in ubiqity connector to fix ESM import error - Use explicit 127.0.0.1 instead of localhost in many source files. NodeJS 18 prefers ipv6 over ipv4 and that caused some troubles when localhost was used. - Run codegen to update file structure. - Replace ts-ignore with ts-expect-error and add description to fix es-lint errors. Fix formatting issues found by the linter. Signed-off-by: Michal Bajer <[email protected]>
- Loading branch information
Showing
231 changed files
with
1,107 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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] | ||
|
||
|
Oops, something went wrong.