Skip to content

Commit 7316fde

Browse files
committed
ci: fix version
1 parent 7724852 commit 7316fde

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/prerelease.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ jobs:
5353
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5454

5555
- name: Set Version
56+
run: pnpm version prerelease
57+
58+
- name: Get Version
5659
id: version
57-
run: |
58-
NEW_VERSION=$(pnpm version prerelease)
59-
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
60+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
6061

6162
- name: Build
6263
run: pnpm build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tqman/valorant-api-client",
3-
"version": "3.0.0-alpha.0",
3+
"version": "3.0.0-alpha.1",
44
"description": "Minimal API Client for VALORANT",
55
"repository": "github:tanishqmanuja/valorant-api-client",
66
"type": "module",

0 commit comments

Comments
 (0)