Skip to content

Commit 6c9f340

Browse files
committed
tools: use LTS Node.js in notify-on-push workflow
Without pinning Node.js, the runner defaults to Node 20 and npx falls back to [email protected] instead of 6.0.0 (requires Node 22+). Version 5 does not recognise the ffi subsystem, causing false invalid-commit alerts. Signed-off-by: Nenad Spasenic <[email protected]>
1 parent 13e90d0 commit 6c9f340

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/notify-on-push.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ name: Notify on Push
77
permissions:
88
contents: read
99

10+
env:
11+
NODE_VERSION: lts/*
12+
1013
jobs:
1114
notifyOnForcePush:
1215
name: Notify on Force Push on `main`
@@ -33,6 +36,10 @@ jobs:
3336
# cannot use ubuntu-slim here because rtCamp/action-slack-notify is dockerized
3437
runs-on: ubuntu-24.04-arm
3538
steps:
39+
- name: Install Node.js
40+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
41+
with:
42+
node-version: ${{ env.NODE_VERSION }}
3643
- name: Validate commits
3744
run: echo "$COMMITS" | npx -q core-validate-commit -
3845
id: commit-check

0 commit comments

Comments
 (0)