Skip to content

Commit

Permalink
correct synthax
Browse files Browse the repository at this point in the history
  • Loading branch information
acocalypso committed Apr 29, 2024
1 parent 36ad398 commit f1e683b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
id: get_version
run: |
if [ ${{ matrix.platform }} = 'ubuntu-20.04' ] || [ ${{ matrix.platform }} = 'macOSlatest' ] || [ ${{ matrix.platform }} = 'macos-13' ]; then
echo "VERSION=$(node -e 'console.log(require(\"./package.json\").version)')" >> $GITHUB_OUTPUT
echo "VERSION=$(node -e 'console.log(require("./package.json").version)')" >> $GITHUB_OUTPUT
elif [ ${{ matrix.platform }} = 'windows-latest' ]; then
$version = Get-Content -Path './package.json' -Raw | ConvertFrom-Json | Select-Object -ExpandProperty version
echo "VERSION=$version" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f1e683b

Please sign in to comment.