mirror of
https://github.com/dependabot/fetch-metadata.git
synced 2026-03-13 18:17:13 -04:00
Merge pull request #161 from dependabot/v1.2.1-release-notes
V1.2.1 release notes
This commit is contained in:
28
bin/bump-version
Executable file
28
bin/bump-version
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
usage() { echo "Usage: $0 -p [major | minor | patch]" 1>&2; exit 1; }
|
||||
|
||||
while getopts "p:" o; do
|
||||
case "${o}" in
|
||||
p)
|
||||
patch_level=${OPTARG}
|
||||
(( patch_level == 'major' || patch_level == 'minor' || patch_level == 'patch'))
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "$patch_level"
|
||||
|
||||
if [[ -z "${patch_level}" ]]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
new_version=$(npm version "${patch_level}" --no-git-tag-version)
|
||||
git checkout -b "${new_version}"-release-notes
|
||||
git add package.json package-lock.json
|
||||
git commit -m "${new_version}"
|
||||
|
||||
echo "Branch prepared for ${new_version}"
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "dependabot-pull-request-action",
|
||||
"version": "1.1.1",
|
||||
"version": "1.2.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dependabot-pull-request-action",
|
||||
"version": "1.1.1",
|
||||
"version": "1.2.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.6.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dependabot-pull-request-action",
|
||||
"version": "1.1.1",
|
||||
"version": "1.2.1",
|
||||
"description": "Parse Dependabot commit metadata to automate PR handling",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user