|
6 | 6 |
|
7 | 7 | > ⚠️ tbDEX SWIFT SDK IS CURRENTLY A WIP! ⚠️ |
8 | 8 |
|
9 | | -# Prerequisites |
| 9 | +## Prerequisites |
10 | 10 |
|
11 | | -## Cloning |
| 11 | +### Cloning |
12 | 12 |
|
13 | 13 | After cloning this repository, run: |
| 14 | + |
14 | 15 | ``` |
15 | 16 | make bootstrap |
16 | 17 | ``` |
17 | 18 |
|
18 | 19 | This will configure the repository's submodules properly, and ensure you're all set to go! |
| 20 | + |
| 21 | +## Release Guidelines |
| 22 | + |
| 23 | +### Pre-releases |
| 24 | + |
| 25 | +With Swift Package Manager, pre-releases are not necessary as it can directly utilize the repository's revision or branch name. For instance, to test the current version of the tbDEX package, you can specify either: |
| 26 | + |
| 27 | +```swift |
| 28 | + // Use the main branch |
| 29 | + .package(url: "https://github.com/TBD54566975/tbdex-swift.git", .branch("main")), |
| 30 | + |
| 31 | + // Use a specific commit |
| 32 | + .package(url: "https://github.com/TBD54566975/tbdex-swift.git", .revision("28b3c865742f3b0cb9813f84e9c547425a06ac1d")), |
| 33 | +``` |
| 34 | + |
| 35 | +### Releasing New Versions |
| 36 | + |
| 37 | +To release a new version, initiate the `Release` workflow: |
| 38 | + |
| 39 | +1. Select the version type: `major`, `minor`, `patch`, or `manual`. |
| 40 | + |
| 41 | + - For instance, if the latest version is `0.1.2`: |
| 42 | + - `major` will update to `1.0.0` |
| 43 | + - `minor` will update to `0.2.0` |
| 44 | + - `patch` will update to `0.1.3` |
| 45 | + - For `manual`, input the desired version in the Custom Version field, e.g., `0.9.0` |
| 46 | + |
| 47 | +2. The workflow will automatically create a git tag and a GitHub release, including an automated changelog. |
| 48 | + |
| 49 | +### Publishing Docs |
| 50 | + |
| 51 | +API reference documentation is automatically updated and available at [https://swiftpackageindex.com/TBD54566975/tbdex-swift/{latest-version}/documentation/tbdex](https://swiftpackageindex.com/TBD54566975/tbdex-swift/main/documentation/tbdex) following each release. |
0 commit comments