Add Netlify CLI to Linux images (#1361)

This commit is contained in:
Benjamin Lannon
2020-08-06 14:01:25 -04:00
committed by GitHub
parent 02b79cb9dc
commit e3cb3e32d4
4 changed files with 28 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
################################################################################
## File: netlify.sh
## Desc: Installs the Netlify CLI
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/document.sh
# Install the Netlify CLI
npm i -g netlify-cli
# Validate the installation
echo "Validate the installation"
if ! command -v netlify; then
echo "Netlify CLI was not installed"
exit 1
fi
# Document the installed version
echo "Document the installed version"
DocumentInstalledItem "Netlify CLI ($(netlify --version))"