diff options
author | Rich Trott <rtrott@gmail.com> | 2021-07-24 16:37:56 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2021-09-04 16:14:37 +0300 |
commit | 61261cdb8e90480adab3b6073dd2ef7ae67236db (patch) | |
tree | 5d8d83daefbe9c37616e03a1a84fe5e27207b3f6 /.github | |
parent | 48ec33f1b88545574a64ab9ed1083a4ba36abd70 (diff) |
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: https://github.com/nodejs/node/pull/39506
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/commit-lint.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index 66587c7cb0a..844a2a08ef6 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -2,6 +2,9 @@ name: "Commit messages adheres to guidelines at https://goo.gl/p2fr5Q" on: [pull_request] +env: + NODE_VERSION: 14.x + jobs: lint-commit-message: runs-on: ubuntu-latest @@ -10,10 +13,10 @@ jobs: with: # Last 100 commits should be enough for a PR fetch-depth: 100 - - name: Use Node.js 12 + - name: Install Node.js uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: ${{ env.NODE_VERSION }} - name: Validate commit messages run: | echo "::add-matcher::.github/workflows/commit-lint-problem-matcher.json" |