Skip to content

Commit 694d8a8

Browse files
committed
fix(ci): prep for v2
1 parent ded0c86 commit 694d8a8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
types: [spec_release]
44
push:
55
branches:
6-
- v2
6+
- main
77

88
name: Build & release
99

@@ -38,8 +38,16 @@ jobs:
3838

3939
- name: Update version
4040
run: |
41-
VERSION=$(yq '.info.version' openapi.yaml | tr -d '"')
42-
pnpm version "${VERSION}-next.$(date +%s)" --no-git-tag-version
41+
version=$(yq '.info.version' openapi.yaml | tr -d '"')
42+
# 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
4351
4452
- name: Build
4553
run: pnpm build

0 commit comments

Comments
 (0)