diff --git a/README.md b/README.md index 26bd05271..d1179b670 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,10 @@ Sentry SDK for Unity [![build](https://github.com/getsentry/sentry-unity/workflows/CI/badge.svg?branch=main)](https://github.com/getsentry/sentry-unity/actions?query=branch%3Amain) [![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord&logoColor=ffffff&color=7389D8)](https://discord.gg/PXa5Apfe7K) -Install it via UPM: +Install it via `UPM`: ``` -https://github.com/getsentry/unity.git#x.x.x +https://github.com/getsentry/unity.git#0.3.0 ``` -where `x.x.x` is [the latest release](https://github.com/getsentry/unity/releases). ## Documentation diff --git a/package/README.md b/package/README.md index 85ac9e3b9..3d02d74b2 100644 --- a/package/README.md +++ b/package/README.md @@ -10,8 +10,10 @@ Sentry SDK for Unity This is the UPM package for the Sentry SDK for Unity. -Install it via `UPM`: `https://github.com/getsentry/unity.git#x.x.x` -Where `x.x.x` is [the latest release](https://github.com/getsentry/unity/releases). +Install it via `UPM`: +``` +https://github.com/getsentry/unity.git#0.3.0 +``` ## Source code diff --git a/scripts/bump-version.ps1 b/scripts/bump-version.ps1 index 098a8d3ae..fbdecadb9 100644 --- a/scripts/bump-version.ps1 +++ b/scripts/bump-version.ps1 @@ -9,5 +9,10 @@ function Replace-TextInFile { [IO.File]::WriteAllText($filePath, $content, $utf8NoBomEncoding) } +# Version of .NET assemblies: Replace-TextInFile "$PSScriptRoot/../Directory.Build.props" '(?<=)(.*?)(?=)' $newVersion +# Version of the UPM package Replace-TextInFile "$PSScriptRoot/../package/package.json" '(?<="version": ")(.*?)(?=")' $newVersion +# Bump the version on the repository README and the UPM's README: +Replace-TextInFile "$PSScriptRoot/../package/README.md" '(?<=git#)(.+)' $newVersion +Replace-TextInFile "$PSScriptRoot/../README.md" '(?<=git#)(.+)' $newVersion