Reworked colors

This commit is contained in:
2024-12-25 16:27:43 +01:00
parent bf0e8e6870
commit 6dfbf74153

View File

@@ -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 }}