Skip to content

Commit

Permalink
version in readme (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia authored Jun 25, 2021
1 parent 55c134d commit b1b1f5d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions scripts/bump-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ function Replace-TextInFile {
[IO.File]::WriteAllText($filePath, $content, $utf8NoBomEncoding)
}

# Version of .NET assemblies:
Replace-TextInFile "$PSScriptRoot/../Directory.Build.props" '(?<=<Version>)(.*?)(?=</Version>)' $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

0 comments on commit b1b1f5d

Please sign in to comment.