diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 54d41f1..6e38c8d 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -7,7 +7,7 @@ jobs: auto-merge: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ahmadnassri/action-dependabot-auto-merge@v2 with: target: minor diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index dcb06c4..a64ab4d 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -5,7 +5,7 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c550ac2..3eb9c24 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Use Node.js 18 - uses: actions/setup-node@v1 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: .nvmrc - run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90a7045..53f3cd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: id-token: write # to enable use of OIDC for npm provenance steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Import scriptbot's GPG key for signing commits @@ -35,9 +35,9 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: .nvmrc - name: Install dependencies run: npm clean-install - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7169937..136a37e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,13 +12,13 @@ jobs: matrix: # If you change these, don't forget to update carryforward in the finish # step as well. - node-version: [14, 16, 18] + node-version: [14, 16, 18, 20] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -43,4 +43,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true - carryforward: "14,16,18" + carryforward: "14,16,18,20" diff --git a/.nvmrc b/.nvmrc index 84dbe48..07533ba 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18.12 +v20.11 diff --git a/README.md b/README.md index 88dc1ab..b326a5b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ and there are no external dependencies 😉 ## Installation -sql-highlight is tested to work with Node.js 14, 16 and 18. +sql-highlight is tested to work with Node.js 16, 18 and 20. Install with Yarn: ```bash