Skip to content

Commit 516273f

Browse files
authored
Merge pull request #57 from adpi2/contributing
Add Contributing guide
2 parents 5a69002 + cb045fc commit 516273f

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Or by including the latest Toolkit artifact in your build file: `org.scala-lang:
1414
## Dependencies changelog
1515
In the `changelog` directory you can find a list of changes in the dependencies of the Scala Toolkit, including transitive ones.
1616

17-
### Generate or update changelog
18-
To generate or update the changelog, run the following command:
19-
```shell
20-
scala-cli changelog -- --overwrite
21-
```
17+
## How to update the dependencies? How to release the toolkit?
18+
19+
Check out the [Contributing Guide](CONTRIBUTING.md).
File renamed without changes.

0 commit comments

Comments
 (0)