From a6c2b7e474fb2234096dc49ea213cf048126b624 Mon Sep 17 00:00:00 2001 From: Eyal Kapon Date: Thu, 17 Oct 2024 12:16:05 +0300 Subject: [PATCH] upgraded frogbot to use node20 --- .github/workflows/action-test.yml | 4 ++-- .github/workflows/test.yml | 2 +- action.yml | 2 +- action/package-lock.json | 2 +- action/package.json | 2 +- docs/templates/jfrog-pipelines/pipelines-npm.yml | 2 +- docs/templates/jfrog-pipelines/pipelines-yarn2.yml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/action-test.yml b/.github/workflows/action-test.yml index 91a3d5721..28f283649 100644 --- a/.github/workflows/action-test.yml +++ b/.github/workflows/action-test.yml @@ -22,7 +22,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v3 with: - node-version: "16.x" + node-version: "20.x" # Install and run tests - name: Install @@ -30,4 +30,4 @@ jobs: - name: Lint run: npm run lint - name: Unit tests - run: npm t \ No newline at end of file + run: npm t diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9002d266f..cb7362203 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -93,7 +93,7 @@ jobs: - name: Install npm uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" - name: Setup Python3 uses: actions/setup-python@v4 diff --git a/action.yml b/action.yml index fc372e85f..549dfa271 100644 --- a/action.yml +++ b/action.yml @@ -13,7 +13,7 @@ inputs: description: "By default, this is the URL of the GitHub repository owner, such as the organization that owns the repository." required: false runs: - using: "node16" + using: "node20" main: "action/lib/main.js" branding: icon: "terminal" diff --git a/action/package-lock.json b/action/package-lock.json index e6be969d3..49b465b26 100644 --- a/action/package-lock.json +++ b/action/package-lock.json @@ -31,7 +31,7 @@ "typescript": "^5.2.2" }, "engines": { - "node": ">=16.0.0", + "node": ">=20.0.0", "npm": ">=7.0.0" } }, diff --git a/action/package.json b/action/package.json index 3a96bb24f..2301f3884 100644 --- a/action/package.json +++ b/action/package.json @@ -6,7 +6,7 @@ "main": "lib/main.js", "engines": { "npm": ">=7.0.0", - "node": ">=16.0.0" + "node": ">=20.0.0" }, "scripts": { "prepublishOnly": "npm prune --production && npm run compile", diff --git a/docs/templates/jfrog-pipelines/pipelines-npm.yml b/docs/templates/jfrog-pipelines/pipelines-npm.yml index 98086d254..8bfe2af40 100644 --- a/docs/templates/jfrog-pipelines/pipelines-npm.yml +++ b/docs/templates/jfrog-pipelines/pipelines-npm.yml @@ -30,7 +30,7 @@ pipelines: image: auto: language: node - version: "16" + version: "20" environmentVariables: # [Mandatory] # JFrog platform URL diff --git a/docs/templates/jfrog-pipelines/pipelines-yarn2.yml b/docs/templates/jfrog-pipelines/pipelines-yarn2.yml index bd8652aeb..d3ba2536e 100644 --- a/docs/templates/jfrog-pipelines/pipelines-yarn2.yml +++ b/docs/templates/jfrog-pipelines/pipelines-yarn2.yml @@ -30,7 +30,7 @@ pipelines: image: auto: language: node - version: "16" + version: "20" environmentVariables: # [Mandatory if the two conditions below are met] # 1. The project uses yarn 2, NuGet or .NET Core to download its dependencies