Reworked colors
This commit is contained in:
@@ -21,7 +21,7 @@ runs:
|
||||
run: |
|
||||
cd "${{ inputs.path }}"
|
||||
if ! corepack install; then
|
||||
log_info "$(blue)Finding out the package manager used"
|
||||
log_info "Finding out the package manager used"
|
||||
|
||||
PKG_MANAGER="npm"
|
||||
if [ -f "./package-lock.json" ]; then
|
||||
@@ -34,11 +34,11 @@ runs:
|
||||
PKG_MANAGER="yarn@1"
|
||||
fi
|
||||
|
||||
log_info "$(blue)Using $PKG_MANAGER"
|
||||
log_info "Using $(yellow)$PKG_MANAGER"
|
||||
corepack use "$PKG_MANAGER"
|
||||
fi
|
||||
|
||||
log_info "$(blue)Installing shims to /usr/local/bin"
|
||||
log_info "Installing shims to $(yellow)/usr/local/bin"
|
||||
corepack enable --install-directory "/usr/local/bin/"
|
||||
- name: Installing packages
|
||||
shell: sh
|
||||
@@ -46,5 +46,5 @@ runs:
|
||||
cd "${{ inputs.path }}"
|
||||
|
||||
PKG_MANAGER="$(sed -nE 's/.*"packageManager": *"([^@"]+).*/\1/p' package.json)"
|
||||
log_info "$(blue)Installing with ${PKG_MANAGER}"
|
||||
log_info "Installing with $(yellow)${PKG_MANAGER}"
|
||||
corepack "${PKG_MANAGER}" install ${{ inputs.options }}
|
||||
|
||||
Reference in New Issue
Block a user