Skip to content

Commit 9e6b232

Browse files
committed
Update comment on cache-node-modules
1 parent 4bf589c commit 9e6b232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ runs:
8282
echo "SKIP_AUDIT=$([ "${{ inputs.audit-skip }}" = "true" ] || [ "${{ inputs.skip-audit }}" = "true" ] && echo "true" || echo "false")" >> $GITHUB_ENV
8383
echo "SKIP_TEST=$([ "${{ inputs.test-skip }}" = "true" ] || [ "${{ inputs.skip-test }}" = "true" ] && echo "true" || echo "false")" >> $GITHUB_ENV
8484
echo "SKIP_BUILD=$([ "${{ inputs.build-skip }}" = "true" ] || [ "${{ inputs.skip-build }}" = "true" ] && echo "true" || echo "false")" >> $GITHUB_ENV
85-
# If cache-node-modules is true and install-command is still the default, set install-command to check for node_modules
85+
# If cache-node-modules is true and install-command is still the default, set install-command to skip npm ci if node_modules exists
8686
if [ "${{ inputs.cache-node-modules }}" = "true" ] && [ "${{ inputs.install-command }}" = "npm ci" ]; then
8787
echo 'INSTALL_COMMAND=if [ -d "node_modules" ]; then echo "Using cached node_modules"; else npm ci; fi' >> $GITHUB_ENV
8888
else

0 commit comments

Comments
 (0)