From 00ffaf97e16e5f79947e4d05cb6ec1757e78a99c Mon Sep 17 00:00:00 2001 From: Joris Berthelot Date: Wed, 6 Dec 2023 16:58:40 +0100 Subject: [PATCH] Require Node v18 and Ghost CLI 1.25 --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- package.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d59b1b0..9708e2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - run: npm install -g yarn - run: yarn - run: yarn run eslint @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 registry-url: https://registry.npmjs.org/ - run: yarn install --frozen-lockfile - run: yarn publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c0a597..4762d87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14, 16] + node-version: [18] steps: - uses: actions/checkout@v3 - name: Node.js ${{ matrix.node-version }} @@ -24,10 +24,10 @@ jobs: - run: yarn run eslint - run: yarn global add mocha - name: Run yarn test - if: ${{ !startsWith(matrix.node-version, '16') }} + if: ${{ !startsWith(matrix.node-version, '18') }} run: yarn test - name: Run yarn coverage - if: ${{ startsWith(matrix.node-version, '16') }} + if: ${{ startsWith(matrix.node-version, '18') }} uses: paambaati/codeclimate-action@v3.0.0 env: CC_TEST_REPORTER_ID: 0d3707693eec3617898169fa9d7f91a86d5a98a252beb81bd9fe89009647a456 diff --git a/package.json b/package.json index 5aaf6bd..f20280e 100644 --- a/package.json +++ b/package.json @@ -37,11 +37,11 @@ "scripts": { "test": "mocha tests/index", "coverage": "nyc --reporter=lcov mocha tests/index", - "eslint": "$(npm bin)/eslint ." + "eslint": "$(yarn bin)/eslint ." }, "engines": { - "node": "^14.17.0 || ^16.13.0", - "cli": "^1.17.0" + "node": "^18", + "cli": "^1.25.0" }, "dependencies": { "@tryghost/debug": "^0.1.17",