From d7cf77d6cda8bcbf662e677a1cf44003099bafa3 Mon Sep 17 00:00:00 2001 From: acocalypso Date: Tue, 30 Apr 2024 00:18:53 +0200 Subject: [PATCH] screw it... --- .github/workflows/build.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54d6d032..60149c7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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