mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 16:38:20 +01:00
feat(build): 💚 Hopefully fix CI
This commit is contained in:
parent
c392b20f31
commit
5f5bdc80c6
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
|
|
@ -19,6 +19,7 @@ on:
|
||||||
description: "Package to publish"
|
description: "Package to publish"
|
||||||
options:
|
options:
|
||||||
- federation
|
- federation
|
||||||
|
- client
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
@ -50,8 +51,14 @@ jobs:
|
||||||
- name: Change version in package.json to ${{ github.event.inputs.version }}, defaulting to the truncated commit hash
|
- name: Change version in package.json to ${{ github.event.inputs.version }}, defaulting to the truncated commit hash
|
||||||
run: 'sed -i ''s/"version": ".*"/"version": "${{ github.event.inputs.version }}"/'' package.json ${{ github.event.inputs.package }}/package.json ${{ github.event.inputs.package }}/jsr.jsonc'
|
run: 'sed -i ''s/"version": ".*"/"version": "${{ github.event.inputs.version }}"/'' package.json ${{ github.event.inputs.package }}/package.json ${{ github.event.inputs.package }}/jsr.jsonc'
|
||||||
|
|
||||||
|
- name: CD to package directory
|
||||||
|
run: cd ${{ github.event.inputs.package }}
|
||||||
|
|
||||||
|
- name: Patch Bunpublish to not break
|
||||||
|
run: sed -i --follow-symlinks 's/getHeapStatistics().heap_size_limit/99999999/g' "node_modules/@npmcli/arborist/lib/packument-cache.js"
|
||||||
|
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
run: bunx @morlay/bunpublish --provenance --tag ${{ github.event.inputs.tag }}
|
run: bunx @morlay/bunpublish --provenance --tag ${{ github.event.inputs.tag }}
|
||||||
|
|
||||||
- name: Publish to JSR
|
- name: Publish to JSR
|
||||||
run: cd ${{ github.event.inputs.package }} && bunx jsr publish --allow-slow-types --allow-dirty
|
run: bunx jsr publish --allow-slow-types --allow-dirty
|
||||||
|
|
|
||||||
BIN
client/bun.lockb
BIN
client/bun.lockb
Binary file not shown.
8
client/jsr.jsonc
Normal file
8
client/jsr.jsonc
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://jsr.io/schema/config-file.v1.json",
|
||||||
|
"name": "@lysand-org/client",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"exports": {
|
||||||
|
".": "./index.ts"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -33,6 +33,17 @@ type StatusContentType =
|
||||||
| "text/html"
|
| "text/html"
|
||||||
| "text/x.misskeymarkdown";
|
| "text/x.misskeymarkdown";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* LysandClient is a client for interacting with the Lysand API.
|
||||||
|
*
|
||||||
|
* @extends BaseClient
|
||||||
|
* @example
|
||||||
|
* const client = new LysandClient(new URL("https://example.com"));
|
||||||
|
*
|
||||||
|
* const { data } = await client.getInstance();
|
||||||
|
*
|
||||||
|
* console.log(data);
|
||||||
|
*/
|
||||||
export class LysandClient extends BaseClient {
|
export class LysandClient extends BaseClient {
|
||||||
/**
|
/**
|
||||||
* POST /api/v1/follow_requests/:id/authorize
|
* POST /api/v1/follow_requests/:id/authorize
|
||||||
|
|
|
||||||
|
|
@ -55,5 +55,8 @@
|
||||||
"@types/mime-types": "^2.1.4",
|
"@types/mime-types": "^2.1.4",
|
||||||
"magic-regexp": "^0.8.0",
|
"magic-regexp": "^0.8.0",
|
||||||
"mime-types": "^2.1.35"
|
"mime-types": "^2.1.35"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@morlay/bunpublish": "^0.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,5 +64,8 @@
|
||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"zod": "^3.23.8",
|
"zod": "^3.23.8",
|
||||||
"zod-validation-error": "^3.3.0"
|
"zod-validation-error": "^3.3.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@morlay/bunpublish": "^0.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue