ci: temporarily allow Node 20 for branch protection compliance

GitHub deprecated Node 20 on runners (2025-09-19), but branch protection
rules still require Node 20 tests to pass. Set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true
only for the test job, not publish.

Reverts node-version matrix to [20, 22] to match master.

Ref: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Ben West
2026-03-12 12:49:43 -07:00
co-authored by Copilot
parent e12cf3d2e2
commit ee3e6af76e
+5 -1
View File
@@ -16,8 +16,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [22, 24] node-version: [20, 22, 24]
mongodb-version: [4.4, 5.0, 6.0] mongodb-version: [4.4, 5.0, 6.0]
env:
# Temporary: Allow Node 20 until branch protection rules are updated
# See: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps: steps:
- name: Git Checkout - name: Git Checkout