We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ded0c86 commit 694d8a8Copy full SHA for 694d8a8
.github/workflows/ci.yaml
@@ -3,7 +3,7 @@ on:
3
types: [spec_release]
4
push:
5
branches:
6
- - v2
+ - main
7
8
name: Build & release
9
@@ -38,8 +38,16 @@ jobs:
38
39
- name: Update version
40
run: |
41
- VERSION=$(yq '.info.version' openapi.yaml | tr -d '"')
42
- pnpm version "${VERSION}-next.$(date +%s)" --no-git-tag-version
+ version=$(yq '.info.version' openapi.yaml | tr -d '"')
+ # pnpm version "${VERSION}-next.$(date +%s)" --no-git-tag-version
43
+
44
+ major=$(echo $version | cut -d. -f1)
45
+ minor=$(echo $version | cut -d. -f2)
46
+ patch=$(echo $version | cut -d. -f3)
47
48
+ version="$((major+1)).$minor.$patch"
49
50
+ pnpm version $version --no-git-tag-version
51
52
- name: Build
53
run: pnpm build
0 commit comments