Skip to content

Commit 34c62bc

Browse files
committed
Fix CI package artifact version
1 parent abd2006 commit 34c62bc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
- name: Read package version
4141
id: package
4242
shell: bash
43-
run: echo "version=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT"
43+
run: |
44+
version="$(npm pkg get version | tr -d '"')"
45+
echo "version=${version}" >> "$GITHUB_OUTPUT"
4446
4547
- name: Create artifact directory
4648
run: mkdir -p artifacts
@@ -72,7 +74,7 @@ jobs:
7274
- name: Validate release tag
7375
shell: bash
7476
run: |
75-
package_version="$(node -p 'require("./package.json").version')"
77+
package_version="$(npm pkg get version | tr -d '"')"
7678
test "v${package_version}" = "${GITHUB_REF_NAME}"
7779
7880
- name: Prepare release notes

0 commit comments

Comments
 (0)