Skip to content

Commit

Permalink
screw it...
Browse files Browse the repository at this point in the history
  • Loading branch information
acocalypso committed Apr 29, 2024
1 parent 13a8563 commit d7cf77d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,7 @@ jobs:
- name: Get version number from package.json
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
elif [ ${{ matrix.platform }} = 'windows-latest' ]; then
$version = Get-Content -Path './package.json' -Raw | ConvertFrom-Json | Select-Object -ExpandProperty version
echo "VERSION=$version" >> $GITHUB_OUTPUT
else
echo "VERSION=$(node -e 'console.log(require("./package.json").version)')" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_OUTPUT
fi
shell: pwsh
env:
GITHUB_OUTPUT: $GITHUB_OUTPUT
if: matrix.platform == 'ubuntu-20.04' || matrix.platform == 'windows-latest' || matrix.platform == 'macOSlatest' || matrix.platform == 'macos-13'
run: echo "::set-output name=version::$(node -e 'console.log(require("./package.json").version)')"


- name: Install dependencies
Expand Down

0 comments on commit d7cf77d

Please sign in to comment.