We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abd2006 commit 34c62bcCopy full SHA for 34c62bc
1 file changed
.github/workflows/ci.yml
@@ -40,7 +40,9 @@ jobs:
40
- name: Read package version
41
id: package
42
shell: bash
43
- run: echo "version=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT"
+ run: |
44
+ version="$(npm pkg get version | tr -d '"')"
45
+ echo "version=${version}" >> "$GITHUB_OUTPUT"
46
47
- name: Create artifact directory
48
run: mkdir -p artifacts
@@ -72,7 +74,7 @@ jobs:
72
74
- name: Validate release tag
73
75
76
run: |
- package_version="$(node -p 'require("./package.json").version')"
77
+ package_version="$(npm pkg get version | tr -d '"')"
78
test "v${package_version}" = "${GITHUB_REF_NAME}"
79
80
- name: Prepare release notes
0 commit comments