perseid 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,15 +21,19 @@ GitHub App only lends the workflows short-lived tokens, so no secret is stored.
21
21
 
22
22
  ## Quick start
23
23
 
24
- In the repository that holds your OpenAPI spec:
24
+ perseid runs from the repository that holds your OpenAPI spec, so every change to the spec
25
+ regenerates the SDKs. The SDKs can live there or in their own repositories.
25
26
 
26
27
  ```sh
27
- npx perseid init # pick the languages and where the SDKs live
28
+ npx perseid init # pick the languages and where the SDKs live (this repo or others)
28
29
  npx perseid sync # install the perseid App on this repository and the SDK repositories
29
- git add -A && git commit -m "ci: generate SDKs with perseid" && git push
30
30
  ```
31
31
 
32
- The push runs the `SDKs` workflow, which opens a pull request with every SDK.
32
+ Commit and push what perseid wrote: the `SDKs` workflow then opens a pull request with every SDK.
33
+
34
+ Rather keep perseid out of your API repository? Run it from a
35
+ [separate SDKs repository](docs/ci.md#a-separate-sdks-repository) that your API repo pushes the
36
+ spec to.
33
37
 
34
38
  The [perseid App](https://github.com/apps/perseid-sdks) has Contents and Pull requests access to
35
39
  the repositories you select. Each run
@@ -94,17 +98,19 @@ var pets = await petstore.Pets.ListAsync(new() { Limit = 10, Status = PetStatus.
94
98
  sdk-release.yml ─ release-please PR ← you merge ─ tag ─ publish to npm, PyPI, crates.io…
95
99
  ```
96
100
 
97
- `perseid init` and `perseid sync` write two workflows, with your own credentials:
101
+ `perseid init` and `perseid sync` write three workflows, with your own credentials:
98
102
 
99
103
  - `sdks.yml` runs the `meteroid-oss/perseid` Action when the spec changes. It installs perseid
100
104
  and the pinned formatters, then runs `perseid generate --pr`, which commits the SDKs to the
101
105
  `perseid/update` branch and opens or updates one pull request per repository.
106
+ - `sdk-ci.yml`, in each repository holding SDKs, builds each SDK and runs its tests on pull
107
+ requests and pushes.
102
108
  - `sdk-release.yml`, in each repository holding SDKs, runs release-please on merge and publishes
103
109
  each released SDK from the `release` environment.
104
110
 
105
111
  `sdks.yml` is pinned to the release line of the perseid that wrote it, such as
106
- `meteroid-oss/perseid@v0.6`: run `perseid init` again to refresh it. `sdk-release.yml` follows
107
- `@v0`, so it rarely changes.
112
+ `meteroid-oss/perseid@v0.6`: run `perseid init` again to refresh it. `sdk-ci.yml` and
113
+ `sdk-release.yml` follow `@v0`, so they rarely change.
108
114
 
109
115
  ## Where the SDKs live
110
116
 
@@ -117,7 +123,7 @@ var pets = await petstore.Pets.ListAsync(new() { Limit = 10, Status = PetStatus.
117
123
  | One SDKs repository | `repo = "acme/api-sdks"` | `acme/api-sdks`, a folder per language |
118
124
 
119
125
  - perseid never creates repositories: `gh repo create acme/api-typescript`, then `perseid sync`
120
- installs the App there and commits its release workflow.
126
+ installs the App there and commits its CI and release workflows.
121
127
  - Spec in another repository? Run `perseid init` and `perseid sync` in the SDKs repository, then
122
128
  `npx perseid connect acme/api-sdks` in the API repository. It writes a workflow pushing the
123
129
  spec, and opens a pull request naming the API repository as the `source` of `perseid.toml`:
package/checksums.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "perseid-aarch64-apple-darwin.tar.gz": "d31f2ee3707ee0c190fc1f1536dba85bc12ca8154bd7f278a2c7feea7ffb641e",
3
- "perseid-aarch64-unknown-linux-musl.tar.gz": "9aed30c1eb7ba77fb8d4605bbc5164bd7f56cb3f46bf3734657d159aa1092d19",
4
- "perseid-x86_64-apple-darwin.tar.gz": "b760915b878455a48c8378d298e2eca729b81fbf94674239359e3230107d2fb4",
5
- "perseid-x86_64-unknown-linux-musl.tar.gz": "27fbaff55502e826be8777bb56bd33e8f6a2b000a4fcda2372b28814f005b9d6"
2
+ "perseid-aarch64-apple-darwin.tar.gz": "aaff05fb66afb88dbbdd17d372369ce9389d5d5e9cc3549db3eff86b973ce8b6",
3
+ "perseid-aarch64-unknown-linux-musl.tar.gz": "dfe0af436d54373b979999b2f0fc50b2ac96c17188a27f3f6b8591608af3e63e",
4
+ "perseid-x86_64-apple-darwin.tar.gz": "045f9101526d430cf48f56a22194d125a7b273618c6e25b0136fb88ab9c00ff4",
5
+ "perseid-x86_64-unknown-linux-musl.tar.gz": "3b7e63da153081621184236d3327f1076a169784a1b2f0796208b8b422e83e1a"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perseid",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "OpenAPI in, idiomatic SDKs out: Rust, TypeScript, Python, Go, Java and C# from one static binary",
5
5
  "keywords": [
6
6
  "openapi",