-
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.
- Loading branch information
Showing
11 changed files
with
311 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,6 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm test |
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,44 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
|
||
- run: npm ci | ||
- run: npm test | ||
|
||
publish-package: | ||
runs-on: ubuntu-latest | ||
|
||
needs: test | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
registry-url: "https://registry.npmjs.org" | ||
cache: npm | ||
|
||
- run: npm ci | ||
- run: npm run build | ||
- run: npm publish --access public --provenance | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
|
@@ -146,3 +146,5 @@ dist | |
# ignore IDE folders | ||
.vscode/ | ||
.idea/ | ||
|
||
.dist/ |
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 |
---|---|---|
|
@@ -6,5 +6,5 @@ plugins: | |
opt: target=ts | ||
out: src/gen | ||
- local: protoc-gen-connect-es | ||
out: gen | ||
out: src/gen | ||
opt: target=ts |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
{ | ||
"name": "function-sdk-typescript", | ||
"version": "0.0.1", | ||
"license": "Apache-2.0", | ||
"description": "Crossplane Function SDK to build composition functions in TypeScript", | ||
"homepage": "https://github.com/twobiers/function-sdk-typescript", | ||
"author": "twobiers", | ||
"type": "module", | ||
"scripts": { | ||
"build": "tsc", | ||
"generate": "buf generate", | ||
"test": "node --test" | ||
}, | ||
"dependencies": { | ||
"@connectrpc/connect-fastify": "^1.4.0", | ||
"@connectrpc/connect-node": "^1.4.0", | ||
"@kubernetes/client-node": "^0.21.0", | ||
"fastify": "^4.28.1", | ||
"yargs": "^17.7.2" | ||
}, | ||
"devDependencies": { | ||
"@bufbuild/buf": "^1.39.0", | ||
"@bufbuild/protobuf": "^1.10.0", | ||
"@bufbuild/protoc-gen-es": "^1.10.0", | ||
"@connectrpc/connect": "^1.4.0", | ||
"@connectrpc/protoc-gen-connect-es": "^1.4.0", | ||
"@types/yargs": "^17.0.33", | ||
"typescript": "^5.5.4" | ||
}, | ||
"dependencies": { | ||
"@connectrpc/connect-fastify": "^1.4.0", | ||
"@connectrpc/connect-node": "^1.4.0", | ||
"@kubernetes/client-node": "^0.21.0", | ||
"fastify": "^4.28.1" | ||
} | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/twobiers/function-sdk-typescript.git" | ||
}, | ||
"keywords": [ | ||
"crossplane", | ||
"function", | ||
"sdk" | ||
] | ||
} |
Oops, something went wrong.