diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 8bfad6a5..37b91a62 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -9,16 +9,18 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - fetch-depth: 0 # fetch all history + show-progress: false + fetch-depth: 0 # fetch all reachable commits + filter: tree:0 # while fetching trees and blobs on-demand - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' - name: Install Dependencies run: npm ci --ignore-scripts @@ -29,7 +31,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload npm folder - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: changelog path: ./changelog.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85b8a42e..affc09cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,15 +8,15 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' - name: Install Dependencies run: npm ci --ignore-scripts @@ -24,7 +24,7 @@ jobs: - name: Run tests run: npm run testonly - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: always() with: name: playwright-report @@ -37,15 +37,15 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' - name: Install Dependencies run: npm ci --ignore-scripts @@ -74,7 +74,7 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false @@ -100,15 +100,15 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' - name: Install Dependencies run: npm ci --ignore-scripts @@ -130,7 +130,7 @@ jobs: security-events: write # for codeql-action steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false @@ -149,15 +149,15 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' - name: Install Dependencies run: npm ci --ignore-scripts @@ -166,7 +166,7 @@ jobs: run: npm run build:demo - name: Upload demo-dist folder - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: name: demoDist path: ./demo-dist @@ -178,15 +178,15 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' - name: Install Dependencies run: npm ci --ignore-scripts @@ -195,7 +195,7 @@ jobs: run: npm run build:release - name: Upload npm folder - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: npmDist path: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 808cba33..019a436d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,19 +28,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: cache: npm - node-version-file: '.node-version' + node-version-file: 'package.json' # 'registry-url' is required for 'npm publish' registry-url: 'https://registry.npmjs.org' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: npmDist path: npmDist diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9d189cdd..ac0d486a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -15,9 +15,11 @@ jobs: contents: read # for actions/checkout steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Dependency review - uses: actions/dependency-review-action@v2 + uses: actions/dependency-review-action@v4 + with: + comment-summary-in-pr: always diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3540e9b6..efde0fcf 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -27,6 +27,6 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 with: artifact_name: demoDist diff --git a/.node-version b/.node-version deleted file mode 100644 index 9a2a0e21..00000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -v20 diff --git a/package.json b/package.json index a0c7d92f..6857924c 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ "bugs": { "url": "https://github.com/graphql-kit/graphql-voyager/issues" }, + "engines": { + "node": ">=20.0.0" + }, "main": "dist/voyager.lib.js", "types": "typings/index.d.ts", "scripts": {