Skip to content

Commit b1b1f5d

Browse files
authored
version in readme (#242)
1 parent 55c134d commit b1b1f5d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ Sentry SDK for Unity
1111
[![build](https://github.com/getsentry/sentry-unity/workflows/CI/badge.svg?branch=main)](https://github.com/getsentry/sentry-unity/actions?query=branch%3Amain)
1212
[![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord&logoColor=ffffff&color=7389D8)](https://discord.gg/PXa5Apfe7K)
1313

14-
Install it via UPM:
14+
Install it via `UPM`:
1515
```
16-
https://github.com/getsentry/unity.git#x.x.x
16+
https://github.com/getsentry/unity.git#0.3.0
1717
```
18-
where `x.x.x` is [the latest release](https://github.com/getsentry/unity/releases).
1918

2019
## Documentation
2120

package/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ Sentry SDK for Unity
1010

1111
This is the UPM package for the Sentry SDK for Unity.
1212

13-
Install it via `UPM`: `https://github.com/getsentry/unity.git#x.x.x`
14-
Where `x.x.x` is [the latest release](https://github.com/getsentry/unity/releases).
13+
Install it via `UPM`:
14+
```
15+
https://github.com/getsentry/unity.git#0.3.0
16+
```
1517

1618
## Source code
1719

scripts/bump-version.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ function Replace-TextInFile {
99
[IO.File]::WriteAllText($filePath, $content, $utf8NoBomEncoding)
1010
}
1111

12+
# Version of .NET assemblies:
1213
Replace-TextInFile "$PSScriptRoot/../Directory.Build.props" '(?<=<Version>)(.*?)(?=</Version>)' $newVersion
14+
# Version of the UPM package
1315
Replace-TextInFile "$PSScriptRoot/../package/package.json" '(?<="version": ")(.*?)(?=")' $newVersion
16+
# Bump the version on the repository README and the UPM's README:
17+
Replace-TextInFile "$PSScriptRoot/../package/README.md" '(?<=git#)(.+)' $newVersion
18+
Replace-TextInFile "$PSScriptRoot/../README.md" '(?<=git#)(.+)' $newVersion

0 commit comments

Comments
 (0)