diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54d6d03..60149c7 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