From f9ea87e62c6b721b9cd420ae0a334225c4afc3ed Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 30 Apr 2024 08:52:05 +0800 Subject: [PATCH] ^ Update package.json & workflows to use nodeJS 20.x --- .github/workflows/ci.yml | 2 +- .github/workflows/linter.yml | 7 +++++-- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dfa66c..7f5a932 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 10d1821..25ef797 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -14,14 +14,17 @@ jobs: lint: # The type of runner that the job will run on runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] # Steps represent a sequence of tasks that will be executed as part of the job steps: - uses: actions/checkout@v4 - - name: Use Node.js 16.x + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: ${{ matrix.node-version }} cache: "npm" - run: npm install - run: npm run lint diff --git a/package-lock.json b/package-lock.json index 12e3569..d301a18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ "video.js": "^8" }, "engines": { - "node": ">=14.18.0" + "node": ">=20.9.0" }, "peerDependencies": { "video.js": "^7 || ^8" diff --git a/package.json b/package.json index f2f1da9..f585360 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "module": "dist/videojs-vtt-thumbnails.es.js", "type": "module", "engines": { - "node": ">=14.18.0" + "node": ">=20.9.0" }, "repository": { "type": "git",