|
| 1 | +# Contributing Guide |
| 2 | + |
| 3 | +## Updating dependencies |
| 4 | + |
| 5 | +1. You can update the Toolkit dependencies in `Toolkit.scala`, `Toolkit.js.scala` and `ToolkitTest.scala`. The versions in `Toolkit.scala` and `Toolkit.js.scala` should be the same. |
| 6 | + |
| 7 | +2. After changing the dependencies, you must generate the changelog: |
| 8 | + |
| 9 | +- Check that the config in `changelog/Config.scala` is up-to-date: `releaseVersion` should contain the latest released version and `developmentVersion` should contain the next version to release. |
| 10 | +- Run `scala-cli run changelog -- --overwrite` to generate the changelog |
| 11 | +- If the generation fails because of illegal version bumps, you can add the development version in `exceptions.txt` and run `scala-cli run changelog -- --overwrite` again. (This won't be permitted anymore after 1.0.0 which will be the first stable version) |
| 12 | +- Commit and push the changes in the changelog |
| 13 | + |
| 14 | +## Releasing the Toolkit |
| 15 | + |
| 16 | +1. [Create a new release](https://github.com/scala/toolkit/releases/new) in the Github repo |
| 17 | + |
| 18 | +2. Create a new `0.x.y` tag in the `Choose a tag` dropdown list |
| 19 | + |
| 20 | +3. Copy, paste the release description below, and update the versions: |
| 21 | + |
| 22 | +```md |
| 23 | +## Changes to direct dependencies for toolkit |
| 24 | + - Updated `com.lihaoyi:os-lib` from `0.10.0` to `0.10.3` |
| 25 | + - Updated `com.lihaoyi:upickle` from `3.3.0` to `3.3.1` |
| 26 | + - Updated `com.softwaremill.sttp.client4:core` from `4.0.0-M14` to `4.0.0-M16` |
| 27 | + - Updated `com.softwaremill.sttp.client4:upickle` from `4.0.0-M14` to `4.0.0-M16` |
| 28 | + |
| 29 | +## Changes to direct dependencies for toolkit-test |
| 30 | + - Updated `org.scalameta:munit` from `1.0.0-M11` to `1.0.0` |
| 31 | +``` |
| 32 | + |
| 33 | +4. Validate by clicking the `Publish release` button. |
| 34 | + |
| 35 | +5. Check that the `Publish toolkit` action starts, and runs successfully. The new version should appear on [Maven Central](https://repo1.maven.org/maven2/org/scala-lang/toolkit-test_3/) after some time. |
0 commit comments