Skip to content

Commit 905f6d4

Browse files
committed
fix: use GITHUB_REF_NAME instead of GITHUB_REF
1 parent eed0fc1 commit 905f6d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333
node-version: "22"
3434

3535
- name: Set version
36-
run: |
37-
TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///')
38-
npm version "$TAG" --no-git-tag-version
36+
run: npm version "$GITHUB_REF_NAME" --no-git-tag-version
3937

4038
- name: Install Dependencies
4139
run: npm install

0 commit comments

Comments
 (0)