From d9255546d47f3e1cf43f7c7919f1be47e21c3837 Mon Sep 17 00:00:00 2001 From: Konstantin Azizov Date: Fri, 27 Oct 2023 14:57:37 +0200 Subject: [PATCH] chore: bump Node to v20 (#590) --- .github/workflows/ci.yml | 4 ++-- .github/workflows/covector-status.yml | 2 +- .../workflows/covector-version-or-publish.yml | 6 ++--- .github/workflows/test-action.yml | 6 ++--- README.md | 24 +++++++++---------- action.yml | 2 +- package.json | 5 ++-- pnpm-lock.yaml | 14 +++++++---- 8 files changed, 35 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be709fc..42c7063 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,9 +24,9 @@ jobs: version: 7.x.x - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 cache: pnpm - name: install dependencies diff --git a/.github/workflows/covector-status.yml b/.github/workflows/covector-status.yml index 19d8c51..3bb11ca 100644 --- a/.github/workflows/covector-status.yml +++ b/.github/workflows/covector-status.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: covector status diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 488a449..af485de 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: 'https://registry.npmjs.org' - name: install pnpm uses: pnpm/action-setup@v2 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 3f7d305..76774a9 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -11,11 +11,11 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: install Rust stable uses: actions-rs/toolchain@v1 with: diff --git a/README.md b/README.md index dcdc2a1..1ac35ef 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: install Rust stable uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) @@ -65,11 +65,11 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: install Rust stable uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) @@ -108,11 +108,11 @@ jobs: release_id: ${{ steps.create-release.outputs.result }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: get version run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV - name: create release @@ -142,11 +142,11 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: install Rust stable uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) diff --git a/action.yml b/action.yml index 35b7a20..25719d8 100644 --- a/action.yml +++ b/action.yml @@ -61,5 +61,5 @@ outputs: artifactPaths: description: 'The paths of the generated artifacts' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package.json b/package.json index de7d160..df789d5 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "tslib": "2.6.2" }, "devDependencies": { - "@types/node": "16.18.59", + "@types/node": "20.8.9", "@typescript-eslint/eslint-plugin": "6.9.0", "@typescript-eslint/parser": "6.9.0", "@vercel/ncc": "0.38.1", @@ -49,6 +49,7 @@ "typescript": "5.2.2" }, "engines": { - "pnpm": ">=7.33.0" + "pnpm": ">=7.33.0", + "node": ">=20" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b9139fc..6064041 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,8 +35,8 @@ dependencies: devDependencies: '@types/node': - specifier: 16.18.59 - version: 16.18.59 + specifier: 20.8.9 + version: 20.8.9 '@typescript-eslint/eslint-plugin': specifier: 6.9.0 version: 6.9.0(@typescript-eslint/parser@6.9.0)(eslint@8.52.0)(typescript@5.2.2) @@ -414,8 +414,10 @@ packages: '@types/unist': 2.0.6 dev: true - /@types/node@16.18.59: - resolution: {integrity: sha512-PJ1w2cNeKUEdey4LiPra0ZuxZFOGvetswE8qHRriV/sUkL5Al4tTmPV9D2+Y/TPIxTHHgxTfRjZVKWhPw/ORhQ==} + /@types/node@20.8.9: + resolution: {integrity: sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==} + dependencies: + undici-types: 5.26.5 dev: true /@types/semver@7.5.0: @@ -2586,6 +2588,10 @@ packages: which-boxed-primitive: 1.0.2 dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: true + /unified@9.2.2: resolution: {integrity: sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==} dependencies: