-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start preparing jsr publication of client lib
- Loading branch information
Showing
6 changed files
with
76 additions
and
11 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,25 @@ | ||
name: Publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- lib/jsr.json | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
name: Publish ./lib | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: denoland/setup-deno@v1 | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Publish to JSR | ||
working-directory: lib | ||
run: ../with-jsr-deps.sh deno publish --allow-dirty |
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 |
---|---|---|
|
@@ -2,17 +2,19 @@ | |
// All the generated code uses this centralized API contract, | ||
// while users are free to pass in a different compatible client to actually call | ||
|
||
import { toStatus } from './builtin/meta@v1/structs.ts'; | ||
import { | ||
ApiKind, | ||
JSONObject, JSONValue, | ||
JSONObject, | ||
JSONValue, | ||
RequestOptions, | ||
} from "https://deno.land/x/[email protected]/lib/contract.ts"; | ||
|
||
export * from "https://deno.land/x/[email protected]/lib/contract.ts"; | ||
toStatus, | ||
} from "./deps.ts"; | ||
export { | ||
WatchEventTransformer | ||
} from "https://deno.land/x/[email protected]/lib/stream-transformers.ts"; | ||
type RestClient, | ||
type JSONValue, | ||
type ApiKind, | ||
WatchEventTransformer, | ||
} from "./deps.ts"; | ||
|
||
// Helpers used to validate/transform structures from or for the wire | ||
// And some other stuff :) | ||
|
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,6 +1,13 @@ | ||
// This file is just the entire matching kubernetes_client version. | ||
// kubernetes_apis itself only depends on specific files, | ||
// so this is provided an optional utility (as opposed to deps.ts) | ||
// so this is provided an optional utility | ||
|
||
export * from "https://deno.land/x/[email protected]/mod.ts"; | ||
export * as tunnelBeta from "https://deno.land/x/[email protected]/tunnel-beta/via-websocket.ts"; | ||
|
||
export { toStatus } from './builtin/meta@v1/structs.ts'; | ||
|
||
export * from "https://deno.land/x/[email protected]/lib/contract.ts"; | ||
export { | ||
WatchEventTransformer | ||
} from "https://deno.land/x/[email protected]/lib/stream-transformers.ts"; |
Empty file.
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,14 @@ | ||
#!/usr/bin/env sh | ||
set -ux | ||
|
||
mv deps.ts deps_https.ts | ||
mv deps_jsr.ts deps.ts | ||
undo () { | ||
ARG=$? | ||
mv deps.ts deps_jsr.ts | ||
mv deps_https.ts deps.ts | ||
exit $ARG | ||
} | ||
trap undo EXIT | ||
|
||
"$@" |