Skip to content
Snippets Groups Projects
Commit e43b0b0d authored by Pierre SMEYERS's avatar Pierre SMEYERS
Browse files

Merge branch...

Merge branch 'fix/2-make-the-semantic-release-job-faster-by-running-npm-install-only-once' into 'master'

Resolve "make the `semantic-release` job faster by running npm install only once"

Closes #2

See merge request to-be-continuous/semantic-release!3
parents 63c01808 bab645e0
No related branches found
No related tags found
No related merge requests found
......@@ -326,13 +326,16 @@ stages:
fi
log_info "installing required plugins"
npm install -g semantic-release
# shellcheck disable=SC2046
while IFS= read -r line || [[ -n "$line" ]]
do
plugin=$(echo "$line" | cut -d\" -f2)
npm install -g "$plugin"
required_plugins="${required_plugins} $plugin"
done <<< $(yq eval ".plugins[]" "${semrelConfigFile}" --tojson --indent 0)
# shellcheck disable=SC2086
npm install -g semantic-release ${required_plugins}
}
# this script console output is inserted in generated file: DO NOT ADD LOGS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment