Skip to content

Commit d0938c3

Browse files
authored
Ensure deterministic build for releases (#435)
1 parent 42041ce commit d0938c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: dotnet test --configuration Release --logger GitHubActions
2929

3030
- name: Pack with dotnet
31-
run: dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:VersionSuffix=preview-$GITHUB_RUN_NUMBER
31+
run: dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:VersionSuffix=preview-$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=True
3232

3333
- name: Push with dotnet
3434
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/esprimadotnet/api/v2/package

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
VERSION="${arrTag[2]}"
3131
VERSION="${VERSION//v}"
3232
echo "$VERSION"
33-
dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:Version=$VERSION
33+
dotnet pack src/Esprima/Esprima.csproj --output artifacts --configuration Release -p:Version=$VERSION -p:ContinuousIntegrationBuild=True
3434
3535
- name: Push with dotnet
3636
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)