Skip to content

Commit 785bc53

Browse files
TrottBethGriggs
authored andcommitted
build: use Node.js 14 in commit-lint.yml
All of our workflows use Node.js 14.x or 16.x except for commit-lint.yml which has 12.x hard-coded. Update it to 14.x and change it to using an environment variable so it is consistent with our other workflows. PR-URL: #39506 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5994e30 commit 785bc53

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/commit-lint.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Commit messages adheres to guidelines at https://goo.gl/p2fr5Q"
22

33
on: [pull_request]
44

5+
env:
6+
NODE_VERSION: 14.x
7+
58
jobs:
69
lint-commit-message:
710
runs-on: ubuntu-latest
@@ -10,10 +13,10 @@ jobs:
1013
with:
1114
# Last 100 commits should be enough for a PR
1215
fetch-depth: 100
13-
- name: Use Node.js 12
16+
- name: Install Node.js
1417
uses: actions/setup-node@v2
1518
with:
16-
node-version: 12.x
19+
node-version: ${{ env.NODE_VERSION }}
1720
- name: Validate commit messages
1821
run: |
1922
echo "::add-matcher::.github/workflows/commit-lint-problem-matcher.json"

0 commit comments

Comments
 (0)