Skip to content

Commit

Permalink
refactor: updating entry point script with minor tweaks to commands f…
Browse files Browse the repository at this point in the history
…or more clarity
  • Loading branch information
juancarlosjr97 committed Feb 19, 2024
1 parent 68645d1 commit 2e348ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release-it-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ PATH=${NPM_GLOBAL_DIR}/bin:${PATH}

mkdir -p "${NPM_GLOBAL_DIR}"
export NPM_CONFIG_PREFIX="${NPM_GLOBAL_DIR}"
export NPM_CONFIG_PROGRESS=false
export NPM_CONFIG_UPDATE_NOTIFIER=false

# Split the plugin list into an installable command
Expand All @@ -99,8 +100,8 @@ RELEASE_IT_PLUGINS_SEPARATED="${RELEASE_IT_PLUGINS_LIST[*]}"
echo "Installing release-it..."
# To streamline the installation process, globally install release-it along with any required plugins.
# shellcheck disable=SC2086 # The variable RELEASE_IT_PLUGINS_SEPARATED is appropriately split to facilitate the installation of plugins.
npm install --silent -g release-it@${RELEASE_IT_VERSION} ${RELEASE_IT_PLUGINS_SEPARATED}
npm install --silent --global release-it@${RELEASE_IT_VERSION} ${RELEASE_IT_PLUGINS_SEPARATED}

# Execute the provided command
# Execute the provided command to release-it
echo "Executing release-it..."
exec "$@"

0 comments on commit 2e348ca

Please sign in to comment.