Skip to content

Commit 6c509a4

Browse files
committed
fix: don't include v prefix on payload version, update version in spec
1 parent 709644f commit 6c509a4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,17 @@ jobs:
132132
133133
version=$(pnpm semver $version -i)-nightly.$commits_since_release
134134
135+
jq --arg version "$version" '.info.version = $version' dist/openapi.json > dist/.openapi.json && mv dist/.openapi.json dist/openapi.json
136+
yq --arg version "$version" '.info.version = $version' dist/openapi.yaml > dist/.openapi.yaml && mv dist/.openapi.yaml dist/openapi.yaml
137+
135138
gh release create v$version dist/* \
136139
--generate-notes \
137140
--prerelease
138141
139-
release=$(gh release view v$version --json id,tagName,url,isPrerelease,assets | jq -c '{
142+
release=$(gh release view v$version --json id,tagName,url,isPrerelease,assets | jq --arg version "$version" -c '{
140143
id,
141144
url,
142-
version: .tagName,
145+
version: $version,
143146
prerelease: .isPrerelease,
144147
artifacts: (
145148
.assets

0 commit comments

Comments
 (0)