Prechádzať zdrojové kódy

chore: update to node 20

Gerald 2 rokov pred
rodič
commit
ccf8e6bc52

+ 3 - 3
.github/workflows/ci.yml

@@ -23,9 +23,9 @@ jobs:
         uses: actions/checkout@v1 # v1 keeps tags
         with:
           fetch-depth: 100 # for revision index in version and the `has-changed-path` action
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
-          node-version: '18'
+          node-version: '20'
 
       - name: Build
         env:
@@ -41,7 +41,7 @@ jobs:
       - name: Get version and SHA
         run: node scripts/action-helper.js ci
       - name: Upload Artifact
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         continue-on-error: true
         with:
           name: 'Violentmonkey-test-webext-${{ env.GIT_DESCRIBE }}'

+ 2 - 2
.github/workflows/release-edge.yml

@@ -16,9 +16,9 @@ jobs:
           fetch-depth: 250 # for `action-helper`
           # persist-credentials: false # not implemented in v1
 
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
-          node-version: '18'
+          node-version: '20'
 
       - name: Prepare
         run: yarn && node scripts/action-helper.js

+ 2 - 2
.github/workflows/release.yml

@@ -16,9 +16,9 @@ jobs:
           fetch-depth: 250 # for `action-helper`
           # persist-credentials: false # not implemented in v1
 
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
-          node-version: '18'
+          node-version: '20'
 
       - name: Prepare
         run: yarn && node scripts/action-helper.js

+ 2 - 2
.github/workflows/transifex-pull-translations.yml

@@ -13,9 +13,9 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
-          node-version: '18'
+          node-version: '20'
       - name: Install deps
         run: yarn
       - name: Update translations

+ 2 - 2
.github/workflows/transifex-push-translations.yml

@@ -15,9 +15,9 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
-          node-version: '18'
+          node-version: '20'
       - name: Install deps
         run: yarn
       - name: Upload translations

+ 1 - 1
package.json

@@ -107,7 +107,7 @@
     "vueleton": "^2.0.2"
   },
   "engines": {
-    "node": ">=18"
+    "node": ">=20"
   },
   "jest": {
     "setupFilesAfterEnv": [