Explorar o código

Update default runtime to node20 (#1436)

* .

* update workflows
Tatyana Kostromskaya hai 1 ano
pai
achega
97a652b800
Modificáronse 5 ficheiros con 526 adicións e 792 borrados
  1. 2 2
      .github/workflows/check-dist.yml
  2. 1 1
      .github/workflows/test.yml
  3. 1 1
      action.yml
  4. 521 787
      package-lock.json
  5. 1 1
      package.json

+ 2 - 2
.github/workflows/check-dist.yml

@@ -24,10 +24,10 @@ jobs:
     steps:
       - uses: actions/checkout@v3
 
-      - name: Set Node.js 16.x
+      - name: Set Node.js 20.x
         uses: actions/setup-node@v1
         with:
-          node-version: 16.x
+          node-version: 20.x
 
       - name: Install dependencies
         run: npm ci

+ 1 - 1
.github/workflows/test.yml

@@ -13,7 +13,7 @@ jobs:
     steps:
       - uses: actions/setup-node@v1
         with:
-          node-version: 16.x
+          node-version: 20.x
       - uses: actions/checkout@v3
       - run: npm ci
       - run: npm run build

+ 1 - 1
action.yml

@@ -87,6 +87,6 @@ inputs:
     description: The base URL for the GitHub instance that you are trying to clone from, will use environment defaults to fetch from the same instance that the workflow is running from unless specified. Example URLs are https://github.com or https://my-ghes-server.example.com
     required: false
 runs:
-  using: node16
+  using: node20
   main: dist/index.js
   post: dist/index.js

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 521 - 787
package-lock.json


+ 1 - 1
package.json

@@ -37,7 +37,7 @@
   },
   "devDependencies": {
     "@types/jest": "^27.0.2",
-    "@types/node": "^12.7.12",
+    "@types/node": "^20.5.3",
     "@types/uuid": "^3.4.6",
     "@typescript-eslint/eslint-plugin": "^5.45.0",
     "@typescript-eslint/parser": "^5.45.0",

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio