Skip to content

Commit 742a2cd

Browse files
feat(action): suppress npm output with --silent
1 parent e0844b4 commit 742a2cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ runs:
2121
- name: Install commitlint
2222
shell: bash
2323
run: |
24-
command -v commitlint || npm install --global commitlint@${{ inputs.version }}
24+
command -v commitlint || npm install --silent --global commitlint@${{ inputs.version }}
2525
commitlint --version
2626
2727
- name: Check config
2828
shell: bash
2929
run: |
3030
CONFIG=$(commitlint --print-config --no-color)
3131
32-
RULES_LENGTH=$(node << EOF
32+
RULES_LENGTH=$(node <<EOF
3333
const config = $CONFIG;
3434
console.log(Object.keys(config.rules).length);
3535
EOF)
3636
3737
if [[ $RULES_LENGTH == 0 ]]; then
38-
npm install --global ${{ inputs.config }}
38+
npm install --silent --global ${{ inputs.config }}
3939
echo '{"extends":["${{ inputs.config }}"]}' > .commitlintrc.json
4040
fi
4141
@@ -46,7 +46,7 @@ runs:
4646
- name: Cleanup
4747
shell: bash
4848
run: |
49-
npm uninstall --global commitlint @commitlint/config-conventional
49+
npm uninstall --silent --global commitlint @commitlint/config-conventional
5050
git reset --hard && git clean -d --force
5151
5252
branding:

0 commit comments

Comments
 (0)