From ab610b795ef94c5e1da95e45c5d88b85467581df Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Tue, 7 May 2024 16:47:21 -0700 Subject: [PATCH] Reduce CI --- .github/workflows/audit.yml | 4 ++-- .github/workflows/ci-release.yml | 27 ++--------------------- .github/workflows/ci.yml | 27 ++--------------------- .github/workflows/post-dependabot.yml | 4 ++-- .github/workflows/pull-request.yml | 4 ++-- .github/workflows/release-integration.yml | 4 ++-- .github/workflows/release.yml | 8 +++---- package.json | 2 +- release-please-config.json | 1 + scripts/template-oss/index.js | 3 +++ 10 files changed, 21 insertions(+), 63 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index a3ae725..ffe363d 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -27,8 +27,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index fda1812..279999f 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -47,8 +47,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -77,32 +77,9 @@ jobs: - name: Linux os: ubuntu-latest shell: bash - - name: macOS - os: macos-latest - shell: bash - - name: macOS - os: macos-13 - shell: bash - - name: Windows - os: windows-latest - shell: cmd node-version: - 18.6.0 - 18.x - - 20.0.0 - - 20.x - - 22.x - exclude: - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 18.6.0 - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 18.x - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 20.0.0 - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 20.x - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6113772..882b3bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -54,32 +54,9 @@ jobs: - name: Linux os: ubuntu-latest shell: bash - - name: macOS - os: macos-latest - shell: bash - - name: macOS - os: macos-13 - shell: bash - - name: Windows - os: windows-latest - shell: cmd node-version: - 18.6.0 - 18.x - - 20.0.0 - - 20.x - - 22.x - exclude: - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 18.6.0 - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 18.x - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 20.0.0 - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 20.x - - platform: { name: macOS, os: macos-13, shell: bash } - node-version: 22.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index a7ebe12..2e13105 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7dbdfd4..2528406 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,8 +31,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index 130578e..0eeb1e0 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -41,8 +41,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75acebb..2f1db1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -119,8 +119,8 @@ jobs: uses: actions/setup-node@v4 id: node with: - node-version: 22.x - check-latest: contains('22.x', '.x') + node-version: 18.x + check-latest: contains('18.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/package.json b/package.json index 2a42462..e11dae2 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "author": "GitHub Inc.", "license": "MIT", "engines": { - "node": "^18.6.0 || >=20" + "node": ">=18.6.0" }, "devDependencies": { "@npmcli/eslint-config": "^4.0.4", diff --git a/release-please-config.json b/release-please-config.json index bfa2703..0a19d33 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,4 +1,5 @@ { + "last-release-sha": "7f357f45e2b4205cd8474339a95092a5e6e77917", "group-pull-request-title-pattern": "chore: release ${version}", "pull-request-title-pattern": "chore: release${component} ${version}", "changelog-sections": [ diff --git a/scripts/template-oss/index.js b/scripts/template-oss/index.js index 61f96f1..9f257d3 100644 --- a/scripts/template-oss/index.js +++ b/scripts/template-oss/index.js @@ -17,4 +17,7 @@ export default { allowPaths: [ '/types/', ], + latestCiVersion: 18, + windowsCI: false, + macCI: false, }