Skip to content

Commit e8b3058

Browse files
authored
Merge branch 'main' into fix/plus
2 parents 04c7cea + 1df55ed commit e8b3058

File tree

8 files changed

+13
-31
lines changed

8 files changed

+13
-31
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ jobs:
5555

5656
- name: Publish preview packages
5757
if: github.event_name == 'pull_request' && matrix.node-version == '22.11.0' && matrix.os == 'ubuntu-latest'
58-
run: ./scripts/publish-preview-packages.sh ${{ github.event.pull_request.base.ref }}
58+
run: ./scripts/publish-preview-packages.sh
59+
env:
60+
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: pnpm build
3636

3737
- name: Create Release Pull Request
38-
uses: changesets/action@v1
38+
uses: changesets/action@v1.4.9
3939
with:
4040
publish: pnpm changeset publish
4141
version: pnpm changeset version

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @hey-api/docs
1+
# @docs/openapi-ts
22

33
## 0.10.0
44

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: home
33

44
hero:
55
name: High-quality tools for interacting with APIs
6-
tagline: Codegen for your TypeScript projects. Trusted more than 700k times each month to generate reliable API clients and SDKs.
6+
tagline: Codegen for your TypeScript projects. Trusted more than 800k times each month to generate reliable API clients and SDKs.
77
actions:
88
- link: /openapi-ts/get-started
99
text: Get Started

docs/openapi-ts/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { embedProject } from '../embed'
1313
This package is in initial development. The interface might change before it becomes stable. We encourage you to leave feedback on [GitHub](https://github.com/hey-api/openapi-ts/issues).
1414
:::
1515

16-
[@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) is an OpenAPI to TypeScript codegen trusted more than 700k times each month to generate reliable API clients and SDKs. The code is [MIT-licensed](/license) and free to use. Discover available features below or view our [roadmap](https://github.com/orgs/hey-api/discussions/1495) to learn what's coming next.
16+
[@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) is an OpenAPI to TypeScript codegen trusted more than 800k times each month to generate reliable API clients and SDKs. The code is [MIT-licensed](/license) and free to use. Discover available features below or view our [roadmap](https://github.com/orgs/hey-api/discussions/1495) to learn what's coming next.
1717

1818
<button class="buttonLink" @click="(event) => embedProject('hey-api-example')(event)">
1919
Live demo

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hey-api/docs",
2+
"name": "@docs/openapi-ts",
33
"version": "0.10.0",
44
"description": "Documentation for OpenaAPI TypeScript.",
55
"private": true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test:update": "turbo run test:update",
3535
"test": "turbo run test",
3636
"typecheck": "turbo run typecheck --filter=\"!@example/openapi-ts-sample\"",
37-
"vitepress": "turbo run $1 --filter=\"@hey-api/docs\""
37+
"vitepress": "turbo run $1 --filter=\"@docs/openapi-ts\""
3838
},
3939
"engines": {
4040
"node": "^18.18.0 || ^20.9.0 || >=22.11.0"

scripts/publish-preview-packages.sh

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
11
#!/bin/bash
22

3-
if [ -z "$1" ]; then
4-
echo "Error: Base branch not specified. Usage: publish-previews.sh <base-branch>"
5-
exit 1
6-
fi
7-
8-
BASE_BRANCH=$1
3+
result=$(pnpx turbo run build --affected --dry-run=json)
94

10-
# ensure we have the latest changes from the remote
11-
git fetch origin
5+
packages=$(echo "$result" | jq -r '.tasks[].directory' | grep '^packages/' | sed 's|^|./|')
126

13-
if ! git show-ref --verify --quiet refs/remotes/origin/"$BASE_BRANCH"; then
14-
echo "Error: Base branch '$BASE_BRANCH' not found in the remote repository."
15-
exit 1
7+
if [ -n "$packages" ]; then
8+
pnpx pkg-pr-new publish --pnpm $packages
169
fi
17-
18-
echo "Detecting changed packages compared to $BASE_BRANCH..."
19-
CHANGED_PACKAGES=$(git diff --name-only origin/"$BASE_BRANCH"...HEAD | grep '^packages/' | cut -d '/' -f 2 | sort -u)
20-
21-
if [ -z "$CHANGED_PACKAGES" ]; then
22-
echo "No changed packages detected."
23-
exit 0
24-
fi
25-
26-
PACKAGE_PATHS=$(echo "$CHANGED_PACKAGES" | awk '{printf "./packages/%s ", $1}' | sed 's/ $//')
27-
28-
echo "Publishing changed packages: $PACKAGE_PATHS"
29-
pnpx pkg-pr-new publish --pnpm $PACKAGE_PATHS

0 commit comments

Comments
 (0)