Skip to content

Commit 0c8129e

Browse files
fix ci
1 parent c7516df commit 0c8129e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
id: check-open-vsx
4141
shell: bash
4242
run: |
43-
VERSION=$(node -p "require('./packages/urlspec-vscode-extension/package.json').version")
43+
VERSION=$(git show HEAD:packages/urlspec-vscode-extension/package.json | node -e "let d=''; process.stdin.on('data',c=>d+=c); process.stdin.on('end',()=>process.stdout.write(JSON.parse(d).version))")
4444
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "https://open-vsx.org/api/daangn/urlspec-vscode-extension/$VERSION")
4545
echo "version=$VERSION"
4646
echo "unpublished=$([ "$HTTP_STATUS" = "404" ] && echo 'true' || echo 'false')"

0 commit comments

Comments
 (0)