Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraisinten <raisinten@gmail.com>2020-11-14 18:20:03 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-11-23 00:15:59 +0300
commitfcc38a131292e77733eb8c5a6ef1456ddacdda85 (patch)
tree45b2dfc561ccada747f1c389cb76d490705b69a4 /.github
parent1a4d43f840968305e9a1271278463f473cbc9fd3 (diff)
build: replace which with command -v
PR-URL: https://github.com/nodejs/node/pull/36118 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linters.yml8
-rw-r--r--.github/workflows/misc.yml2
2 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index 6c25e775d34..14aed9bfddf 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -24,7 +24,7 @@ jobs:
- name: Environment Information
run: npx envinfo
- name: Lint addon docs
- run: NODE=$(which node) make lint-addon-docs
+ run: NODE=$(command -v node) make lint-addon-docs
lint-cpp:
runs-on: ubuntu-latest
steps:
@@ -50,7 +50,7 @@ jobs:
- name: Lint docs
run: |
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
- NODE=$(which node) make lint-md
+ NODE=$(command -v node) make lint-md
lint-js:
runs-on: ubuntu-latest
steps:
@@ -62,7 +62,7 @@ jobs:
- name: Environment Information
run: npx envinfo
- name: Lint JavaScript files
- run: NODE=$(which node) make lint-js
+ run: NODE=$(command -v node) make lint-js
lint-py:
runs-on: ubuntu-latest
steps:
@@ -76,7 +76,7 @@ jobs:
- name: Lint Python
run: |
make lint-py-build || true
- NODE=$(which node) make lint-py
+ NODE=$(command -v node) make lint-py
lint-codeowners:
runs-on: ubuntu-latest
diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml
index 4ee135c5ebc..1444dff7262 100644
--- a/.github/workflows/misc.yml
+++ b/.github/workflows/misc.yml
@@ -23,7 +23,7 @@ jobs:
- name: Environment Information
run: npx envinfo
- name: Build
- run: NODE=$(which node) make doc-only
+ run: NODE=$(command -v node) make doc-only
- uses: actions/upload-artifact@v1
with:
name: docs