From 462128b660e477c8878a991073547c01ffaf76e6 Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Fri, 8 Sep 2023 00:31:41 -1000 Subject: [PATCH] ci: update node versions for cI (#732) --- .github/workflows/ci.yml | 20 ++++++++++---------- package.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9d89569..71a5ef2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,21 +9,21 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 10 - - name: Use Node.js 16.x to build - uses: actions/setup-node@v1 + - name: Use Node.js 18.x to build + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - run: npm install - run: npm run build - run: rm -rf node_modules - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install @@ -31,10 +31,10 @@ jobs: env: CI: true - run: npm run lint - if: matrix.node-version == '16.x' + if: matrix.node-version == '18.x' - run: npm run docs:diff - if: matrix.node-version == '16.x' + if: matrix.node-version == '18.x' - run: npm run test:node - if: matrix.node-version >= '16.x' + if: matrix.node-version >= '18.x' - run: npm run test:pack - if: matrix.node-version >= '16.x' + if: matrix.node-version >= '18.x' diff --git a/package.json b/package.json index e2fd9ccb..2d39f6ac 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'", "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", "md": "runmd --watch --output=README.md README_js.md", - "docs": "( node --version | grep -q 'v16' ) && ( npm run build && npx runmd --output=README.md README_js.md )", + "docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )", "docs:diff": "npm run docs && git diff --quiet README.md", "build": "./scripts/build.sh", "prepack": "npm run build",