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 2098ef9 commit 0ced2b0Copy full SHA for 0ced2b0
.github/workflows/ci.yaml
@@ -51,6 +51,15 @@ jobs:
51
52
- run: |
53
version=$(jq -r '.info.version' ./openapi.json)
54
+ version=$(node -p "
55
+ const semver = require('semver');
56
+
57
+ const version = semver.parse('$version');
58
+ version.major += 1;
59
60
+ version.format()
61
+ ")
62
63
version_tag=$(node -p "require('semver').parse('$version')?.prerelease[0] || 'latest'")
64
65
echo "version=$version" >> $GITHUB_ENV
@@ -61,4 +70,4 @@ jobs:
70
- run: pnpm build
71
72
- if: github.ref == 'refs/heads/main'
- run: npm publish --no-git-checks --tag ${{ env.version_tag }}
73
+ run: pnpm publish --no-git-checks --tag ${{ env.version_tag }}
0 commit comments