From 1a918436ca9d598dfb708f210edcfcbfccf90214 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 3 Nov 2020 13:29:00 -0500 Subject: [PATCH] fix set-env refs --- .github/scripts/load-version.ps1 | 2 +- .github/scripts/macos/increment-version.ps1 | 2 +- .github/workflows/build.yml | 7 ++++--- jslib | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/scripts/load-version.ps1 b/.github/scripts/load-version.ps1 index b8494f7c28..4c0c51933b 100644 --- a/.github/scripts/load-version.ps1 +++ b/.github/scripts/load-version.ps1 @@ -2,4 +2,4 @@ $packageVersion = (Get-Content -Raw -Path $rootPath\src\package.json | ConvertFrom-Json).version; Write-Output "Setting package version to $packageVersion"; -Write-Output "::set-env name=PACKAGE_VERSION::$packageVersion"; +Write-Output "PACKAGE_VERSION=$packageVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append; diff --git a/.github/scripts/macos/increment-version.ps1 b/.github/scripts/macos/increment-version.ps1 index bba3d5ce3f..63787e341e 100644 --- a/.github/scripts/macos/increment-version.ps1 +++ b/.github/scripts/macos/increment-version.ps1 @@ -2,7 +2,7 @@ $packagePath = "$rootPath\package.json"; $buildNumber = 100 + [int]$env:GITHUB_RUN_NUMBER; Write-Output "Setting build number to $buildNumber"; -Write-Output "::set-env name=BUILD_NUMBER::$buildNumber"; +Write-Output "BUILD_NUMBER=$buildNumber" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append; $package = Get-Content -Raw -Path $packagePath | ConvertFrom-Json; $package.build | Add-Member -MemberType NoteProperty -Name buildVersion -Value "$buildNumber"; $package | ConvertTo-Json -Depth 32 | Set-Content $packagePath; diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3022e422c..bdc91cb20b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: node-version: '10.x' - name: Set Node options - run: echo "::set-env name=NODE_OPTIONS::--max_old_space_size=4096" + run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Set up environment run: | @@ -126,7 +126,8 @@ jobs: node-version: '10.x' - name: Set Node options - run: echo "::set-env name=NODE_OPTIONS::--max_old_space_size=4096" + run: echo "NODE_OPTIONS=--max_old_space_size=4096" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + shell: pwsh - name: Set up environment if: github.event_name == 'release' @@ -232,7 +233,7 @@ jobs: node-version: '10.x' - name: Set Node options - run: echo "::set-env name=NODE_OPTIONS::--max_old_space_size=4096" + run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Print environment run: | diff --git a/jslib b/jslib index 5e50aa1a19..0e9e73ce95 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 5e50aa1a195bde11fdc14e9bdf71542766fdbb8d +Subproject commit 0e9e73ce95a321ee05edbb62c50f9e1828f69c5a