-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Release v0.0.1-alpha.7 (#229)
- Loading branch information
Showing
176 changed files
with
5,898 additions
and
2,675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Tag on SemVer Commit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create_tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
|
||
- name: Extract SemVer using Node.js | ||
id: extract_semver | ||
run: | | ||
node -e ' | ||
const execSync = require("child_process").execSync; | ||
const fs = require("fs"); | ||
const commitMessage = execSync("git log -1 --pretty=%B").toString("utf-8"); | ||
const semverRegex = /chore: Release (v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-.]+)?)/; | ||
const match = commitMessage.match(semverRegex); | ||
if (match) { | ||
fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=${match[1]}\n`); | ||
} else { | ||
console.log("No SemVer found in commit body."); | ||
process.exit(0); | ||
} | ||
' | ||
- name: Create a new tag | ||
if: ${{ env.tag_version }} | ||
run: | | ||
git tag ${{ env.tag_version }} | ||
git push origin ${{ env.tag_version }} | ||
- name: Trigger Build Workflow | ||
if: ${{ env.tag_version }} | ||
run: | | ||
curl -X POST \ | ||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "Accept: application/vnd.github+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build.yml/dispatches \ | ||
-d '{"ref":"main", "inputs": {"tag_version": "${{ env.tag_version }}"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/dist/types/client/types.d.ts b/dist/types/client/types.d.ts | ||
index 14af56d34248f101aecdebdd2e56278eac4b0c0d..458962012529b4374d6109112db791d918a6a313 100644 | ||
index ef314c9f6bc8b1ffd8ee0252c3822d14efd81a6d..bb92a4758ff7bb0562d24555ee7ec6f65ec46b20 100644 | ||
--- a/dist/types/client/types.d.ts | ||
+++ b/dist/types/client/types.d.ts | ||
@@ -41,7 +41,7 @@ type ClientResponseOfEndpoint<T extends Endpoint = Endpoint> = T extends { | ||
@@ -42,7 +42,7 @@ type ClientResponseOfEndpoint<T extends Endpoint = Endpoint> = T extends { | ||
output: infer O; | ||
outputFormat: infer F; | ||
status: infer S; | ||
-} ? ClientResponse<O, S extends number ? S : never, F extends ResponseFormat ? F : never> : never; | ||
+ } ? O : never; | ||
+} ? O : never; | ||
export interface ClientResponse<T, U extends number = StatusCode, F extends ResponseFormat = ResponseFormat> extends globalThis.Response { | ||
readonly body: ReadableStream | null; | ||
readonly bodyUsed: boolean; |
Oops, something went wrong.