File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,12 @@ jobs:
126
126
id : set-version
127
127
run : |
128
128
VERSION=`cat ./dist/.version`
129
+ NEXT_VERSION=`cat ./dist/.version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
129
130
echo ::set-output name=name::`cat ./dist/.name`
130
131
tmp=$(mktemp)
131
132
git config --global user.name 'ProjectBot'
132
133
git config --global user.email '[email protected] '
133
- jq --arg version "${VERSION }-SNAPSHOT" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
134
+ jq --arg version "${NEXT_VERSION }-SNAPSHOT" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
134
135
git add package.json
135
136
git commit -m 'auto bump version with release'
136
137
jq --arg version "$VERSION" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
You can’t perform that action at this time.
0 commit comments