* Semi-automated using `ssf-formula` (v0.2.0) * References: - https://github.com/saltstack-formulas/php-formula/pull/175#issuecomment-517492613 - https://github.com/saltstack-formulas/php-formula/pull/185#issuecomment-517603898 * Ensure this only runs until `v1.0.0` (done in the script)tags/v0.38.1
# Return back to the main directory | # Return back to the main directory | ||||
cd .. | cd .. | ||||
############################################################################### | |||||
# (C) Update last version before `v1.0.0` with `${nextRelease.version}` | |||||
############################################################################### | |||||
# Only apply this while the version number is below `v1.0.0`! | |||||
V_REPR=v${1} | |||||
MAJOR=$(echo ${V_REPR} | cut -c-2) | |||||
if [ ${MAJOR} = "v0" ]; then | |||||
sed -i -e "s@^\(\s\+\`\).*\(\s<https://github.com/saltstack-formulas/php-formula/releases/tag/\).*\(>\`_\.\)@\1${V_REPR}\2${V_REPR}\3@" docs/README.rst | |||||
sed -i -e "s@^\(\s\+# the final release tag before \`v1.0.0\`, which is expected to be \`\).*\(\`.\s\+#\)@\1${V_REPR}\2@" php/deprecated.sls | |||||
sed -i -e "s@^\(\s\+# the final release tag before \`v1.0.0\`, which is expected to be \`\).*\(\`.\s\+#\)@\1${V_REPR}\2@" php/ng/deprecated.sls | |||||
fi |
prepareCmd: 'sh ./pre-commit_semantic-release.sh ${nextRelease.version}', | prepareCmd: 'sh ./pre-commit_semantic-release.sh ${nextRelease.version}', | ||||
}], | }], | ||||
['@semantic-release/git', { | ['@semantic-release/git', { | ||||
assets: ['*.md', 'docs/*.rst', 'FORMULA'], | |||||
assets: ['*.md', 'docs/*.rst', 'FORMULA', 'php/deprecated.sls', 'php/ng/deprecated.sls'], | |||||
}], | }], | ||||
'@semantic-release/github', | '@semantic-release/github', | ||||
], | ], |