-
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.
Typescript: Add typescript generation
Fixes #3
- Loading branch information
1 parent
3afa7e9
commit 23ab9fe
Showing
11 changed files
with
2,977 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: NPM Publish | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
npm-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
cache: "npm" | ||
- name: Build and publish to NPM | ||
working-directory: ./typescript | ||
run: | | ||
npm ci | ||
npm run set-version --version="${{ github.ref_name }}" | ||
npm run build | ||
npm publish --public | ||
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
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,28 @@ | ||
# @omotes/proto | ||
|
||
Library containing generated OMOTES Job class from Protobuf specification. | ||
|
||
You probably don't want to install this directly, rather install it through [@omotes/sdk](https://npmjs.com/@omotes/sdk). | ||
|
||
## Development | ||
|
||
Make sure you have the `protoc` executable available on your PATH. | ||
Version 25.2 is used: https://github.com/protocolbuffers/protobuf/releases. | ||
|
||
### Building | ||
|
||
Run the following command to build the protobuf artifacts: | ||
|
||
```sh | ||
npm run build | ||
``` | ||
|
||
### Bumping version from tag | ||
|
||
To correctly version `package.json` with the corresponding git tag, run: | ||
|
||
```sh | ||
npm run set-version major.minor.patch | ||
``` | ||
|
||
You shouldn't have to run this yourself, it will be called through GitHub actions (see [node_release.yml](../.github/workflows/node_release.yml)). |
Oops, something went wrong.