Skip to content
Snippets Groups Projects
Commit 6e377bda authored by Cédric OLIVIER's avatar Cédric OLIVIER Committed by Pierre Smeyers
Browse files

fix: generate .releaserc in yaml format

parent 02c2e648
No related branches found
No related tags found
No related merge requests found
......@@ -453,7 +453,7 @@ stages:
releaserc_file="${semrelConfigFile}"
rm -f "package.json"
yq eval -o=json 'with_entries(select(.key | . != "plugins"))' "${releaserc_file}" > "${releaserc_file}.new"
yq eval -P 'with_entries(select(.key | . != "plugins"))' "${releaserc_file}" > "${releaserc_file}.new"
# Generating the hook scripts that will generate the dotenv file
# The dotenv file is generated in $TMPDIR so it will survive the git reset
......@@ -501,12 +501,12 @@ stages:
echo " ],"
echo "]"
} >> "${releaserc_file}.new"
mv -f "${releaserc_file}.new" "${releaserc_file}"
mv -f "${releaserc_file}.new" ".releaserc"
if [[ -n "$TRACE" ]]; then
echo "generated ${releaserc_file}:"
cat "${releaserc_file}"
echo "generated .releaserc:"
cat ".releaserc"
fi
npm install -g semantic-release @semantic-release/exec
......
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