From 8c7fbcf6dbd23253f59ca63548a1669e5686c8a0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 9 Dec 2023 23:59:03 +0000 Subject: [PATCH 1/9] fix: package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a982d3b..ef8efdac 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "husky": "^8.0.2", "jest": "^29.7.0", "jest-express": "^1.10.1", - "lint-staged": "^9.0.0", + "lint-staged": "^10.2.0", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "rimraf": "^3.0.2", From dd1e8400ae64dccdd341469dade625c7c81fc1ff Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Tue, 19 Mar 2024 12:27:35 +0200 Subject: [PATCH 2/9] fix: fix test --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ef8efdac..8b227193 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "husky": "^8.0.2", "jest": "^29.7.0", "jest-express": "^1.10.1", - "lint-staged": "^10.2.0", + "lint-staged": "^15.2.2", + "listr": "^0.14.3", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "rimraf": "^3.0.2", From d1784f863754023da5fc5a4e089af6587de94e4a Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Tue, 19 Mar 2024 16:59:21 +0200 Subject: [PATCH 3/9] fix: update node --- .github/workflows/nodejs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c9bdd336..dfb22b1a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,9 +24,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Update npm to 8.x + - name: Update npm to 10.x run: | - npm i -g npm@8 + npm i -g npm@10 - name: npm install, build, and test run: | npm install From 5c9f0b3bcfccbd64f7aa8842c39fdc2d83b10514 Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Tue, 19 Mar 2024 17:33:46 +0200 Subject: [PATCH 4/9] fix: update npm --- .github/workflows/nodejs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index dfb22b1a..cfdfb20e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,9 +24,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Update npm to 10.x + - name: Update npm to latest run: | - npm i -g npm@10 + npm i -g npm@latest - name: npm install, build, and test run: | npm install From 576afe6750c95bb1d147d1f1c426970f13fa425f Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Tue, 19 Mar 2024 17:38:13 +0200 Subject: [PATCH 5/9] fix: remove node16 --- .github/workflows/nodejs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index cfdfb20e..beec473c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - node-version: [ lts/-2, lts/-1, lts/*] + node-version: [lts/-1, lts/*] steps: - uses: actions/checkout@v3 @@ -24,9 +24,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Update npm to latest + - name: Update npm to 8.x run: | - npm i -g npm@latest + npm i -g npm@8 - name: npm install, build, and test run: | npm install From e3a5e61ab9fd7ff8323069e922b3010baf16c99c Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Tue, 19 Mar 2024 17:48:41 +0200 Subject: [PATCH 6/9] fix: clear cache --- .github/workflows/nodejs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index beec473c..6d87a8f7 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -27,6 +27,9 @@ jobs: - name: Update npm to 8.x run: | npm i -g npm@8 + - name: Clear npm cache + run: | + npm cache clean --force - name: npm install, build, and test run: | npm install From 0aa23874efcb7b1dbe65ed3892cb604820331bc7 Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Wed, 20 Mar 2024 10:11:52 +0200 Subject: [PATCH 7/9] Revert "fix: clear cache" This reverts commit e3a5e61ab9fd7ff8323069e922b3010baf16c99c. --- .github/workflows/nodejs.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6d87a8f7..beec473c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -27,9 +27,6 @@ jobs: - name: Update npm to 8.x run: | npm i -g npm@8 - - name: Clear npm cache - run: | - npm cache clean --force - name: npm install, build, and test run: | npm install From 9889a8bf540158419dfcef41e1e68f34f4d359be Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Wed, 20 Mar 2024 10:29:38 +0200 Subject: [PATCH 8/9] fix: use node npm --- .github/workflows/nodejs.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index beec473c..27b9e7d9 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,9 +24,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Update npm to 8.x - run: | - npm i -g npm@8 - name: npm install, build, and test run: | npm install From b567e386c99a99ad85c5845700848ebc96f1c9dc Mon Sep 17 00:00:00 2001 From: Victor Ayogu Date: Wed, 20 Mar 2024 12:46:27 +0200 Subject: [PATCH 9/9] fix: bump actions --- .github/workflows/nodejs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 232ecca5..0a9f8fc4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -19,11 +19,14 @@ jobs: node-version: [ lts/-1, lts/*] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + - name: Update npm to 8.x + run: | + npm i -g npm@8 - name: npm install, build, and test run: | npm install