@@ -44,22 +44,22 @@ jobs:
4444 id : breaking
4545 # We previously checked if any illegal breakage occurred, now check if we have breakage _at all_
4646 # If so, we publish this as a _major_ release
47- run : buf breaking --against '.git#ref=HEAD^' && echo "breaking=false" >> $GITHUB_OUTPUT || echo "breaking=true" >> $GITHUB_OUTPUT
47+ run : buf breaking --against '.git#ref=HEAD^' && echo "breaking=false" >> " $GITHUB_OUTPUT" || echo "breaking=true" >> " $GITHUB_OUTPUT"
4848 - name : Has new package?
4949 id : new-package
5050 run : |
5151 last_tree=$(git ls-tree -d -r --name-only HEAD^ proto | sort) # directory tree of proto in old commit
5252 current_tree=$(find proto -type d | sort) # directory tree of proto right now
5353 new_dirs=$(comm -13 <(echo "$last_tree") <(echo "$current_tree")) # filter out lines, which are "-3": common (i.e. unchanged) or "-1": only in the last tree (i.e. removed)
54- echo $new_dirs
54+ echo " $new_dirs"
5555 if [ -z "$new_dirs" ]; then
56- echo "new-package=false" >> $GITHUB_OUTPUT
56+ echo "new-package=false" >> " $GITHUB_OUTPUT"
5757 else
58- echo "new-package=true" >> $GITHUB_OUTPUT
58+ echo "new-package=true" >> " $GITHUB_OUTPUT"
5959 fi
6060 - name : Get SHA
6161 id : commit
62- run : echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
62+ run : echo "sha=$(git rev-parse --short HEAD)" >> " $GITHUB_OUTPUT"
6363 - name : Get Bump
6464 id : bump
6565 run : |
7272 else
7373 BUMP="patch"
7474 fi
75- echo "bump=$BUMP" >> $GITHUB_OUTPUT
75+ echo "bump=$BUMP" >> " $GITHUB_OUTPUT"
7676 env :
7777 BREAKING : ${{ steps.breaking.outputs.breaking }}
7878 NEW_PKG : ${{ steps.new-package.outputs.new-package }}
@@ -91,10 +91,10 @@ jobs:
9191 registry-url : ' https://registry.npmjs.org'
9292 - name : Fetch latest version from registry
9393 working-directory : gen/ts
94- run : npm version $(npm view . version)
94+ run : npm version " $(npm view . version)"
9595 - name : Bump version
9696 working-directory : gen/ts
97- run : npm version pre$BUMP --preid $SHA
97+ run : npm version " pre$BUMP" --preid " $SHA"
9898 env :
9999 BUMP : ${{ needs.check-preconditions.outputs.bump }}
100100 SHA : ${{ needs.check-preconditions.outputs.commit }}
@@ -137,9 +137,9 @@ jobs:
137137 BUMP : ${{ needs.check-preconditions.outputs.bump }}
138138 SHA : ${{ needs.check-preconditions.outputs.commit }}
139139 run : |
140- VERSION=$(curl https://pub.dev/api/packages/helpwave_proto_dart -H "Accept: application/vnd.pub.v2+json" | jq ".latest.version" -r)
141- NEW_VERSION=$(semver bump $BUMP $VERSION)
142- NEW_VERSION=$(semver bump prerel $SHA $NEW_VERSION)
140+ VERSION=$(curl " https://pub.dev/api/packages/helpwave_proto_dart" -H "Accept: application/vnd.pub.v2+json" | jq ".latest.version" -r)
141+ NEW_VERSION=$(semver bump " $BUMP" " $VERSION" )
142+ NEW_VERSION=$(semver bump prerel " $SHA" " $NEW_VERSION" )
143143 sed "s/version:.*/version: $NEW_VERSION/" pubspec.yaml -i
144144 - name : Publish to pub.dev
145145 working-directory : gen/dart
0 commit comments