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 @@ -122,11 +122,12 @@ jobs:
122
122
id : set-version
123
123
run : |
124
124
VERSION=`cat ./dist/.version`
125
+ NEXT_VERSION=`cat ./dist/.version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
125
126
echo ::set-output name=name::`cat ./dist/.name`
126
127
tmp=$(mktemp)
127
128
git config --global user.name 'ProjectBot'
128
129
git config --global user.email '[email protected] '
129
- jq --arg version "${VERSION }-SNAPSHOT" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
130
+ jq --arg version "${NEXT_VERSION }-SNAPSHOT" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
130
131
git add package.json
131
132
git commit -m 'auto bump version with release'
132
133
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