Skip to content

Commit 2aae6d6

Browse files
authored
Merge pull request #31 from codenotary/publish-workflow
publish job and updated readme
2 parents 7454d76 + e560d15 commit 2aae6d6

File tree

152 files changed

+964
-875
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+964
-875
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish immudb node to npmjs
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
env:
9+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10+
steps:
11+
- uses: actions/checkout@v3
12+
# Setup .npmrc file to publish to npm
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '16.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Build
18+
run: |
19+
npm ci
20+
npm run build
21+
- name: Publish immudb-node-grpcjs
22+
run: |
23+
cd immudb-node-grpcjs
24+
npm publish --access public --tag alpha
25+
- name: Publish immudb-node-pbjs
26+
run: |
27+
cd immudb-node-pbjs
28+
npm publish --access public --tag alpha
29+
- name: Publish immudb-node
30+
run: |
31+
cd immudb-node
32+
npm publish --access public --tag alpha
33+

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
11
# immudb-node [![License](https://img.shields.io/github/license/codenotary/immudb-node)](LICENSE)
22

3-
[![Slack](https://img.shields.io/badge/join%20slack-%23immutability-brightgreen.svg)](https://slack.vchain.us/) [![Discuss at [email protected]](https://img.shields.io/badge/discuss-immudb%40googlegroups.com-blue.svg)](https://groups.google.com/group/immudb)
3+
[![npm](https://img.shields.io/npm/v/@codenotary/immudb-node)](https://www.npmjs.com/package/@codenotary/immudb-node)
4+
[![Discord](https://img.shields.io/discord/831257098368319569)](https://discord.gg/EWeCbkjZVu)
5+
[![Tweet about immudb!](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Tweet%20about%20immudb)](https://twitter.com/intent/tweet?text=immudb:%20lightweight,%20high-speed%20immutable%20database!&url=https://github.com/codenotary/immudb)
46

57
### Official [immudb] client for nodejs.
68

79
[immudb]: https://immudb.io/
810

11+
# Old immudb client
912

10-
# Mono repository
13+
**[Old version of immudb node client](https://github.com/codenotary/immudb-node/releases/tag/v1.1.1)**
1114

12-
13-
If you don't plan developing this project, you will be only interested with:
14-
- [immudb-node](immudb-node) - ImmuDb client, or
15-
- [immudb-node-showcase](immudb-node-showcase) - ImmuDb client examples of usage.
15+
# immudb node client (Alpha) mono repository
1616

1717

1818

19-
This repository contains following projects:
19+
If you don't plan developing this project, you will be only interested with:
2020

21-
- [immudb-node](immudb-node) - ImmuDb client,
22-
- [immudb-node-showcase](immudb-node-showcase) - ImmuDb client examples of usage,
23-
- [immudb-node-doc](immudb-node-doc) - Documentation of ImmuDb client,
24-
- [immudb-node-grpcjs](immudb-node-grpcjs) - ImmuDb low lewel gprc bindings,
25-
- [immudb-node-pbjs](immudb-node-pbjs) - ImmuDb low lewel protobufers bindings,
26-
- [immudb-node-test](immudb-node-test) - ImmuDb client tests.
21+
- [immudb-node](immudb-node) - immudb client, or
22+
- [immudb-node-showcase](immudb-node-showcase) - immudb client examples of usage.
2723

24+
This repository contains following projects:
2825

26+
- [immudb-node](immudb-node) - immudb client,
27+
- [immudb-node-showcase](immudb-node-showcase) - immudb client examples of usage,
28+
- [immudb-node-doc](immudb-node-doc) - Documentation of immudb client,
29+
- [immudb-node-grpcjs](immudb-node-grpcjs) - immudb low lewel gprc bindings,
30+
- [immudb-node-pbjs](immudb-node-pbjs) - immudb low lewel protobufers bindings,
31+
- [immudb-node-test](immudb-node-test) - immudb client tests.
2932

3033
# Building project
3134

32-
3335
To (re)build all projects run in root directory:
3436

3537
```sh

immudb-node-doc/immudb-node/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ immudb-node / [Exports](modules.md)
22

33
# Install & use
44

5+
To include (alpha) client in your code, do:
6+
57
```sh
6-
npm install immudb-node
8+
npm install immudb-node@alpha
79
```
810

11+
Then use (see detailed examples in [showcases](../immudb-node-showcase/)):
12+
913
```ts
1014
import { Client } from 'immudb-node'
1115

immudb-node-doc/immudb-node/classes/common_errors.ImmudbClientError.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Error.constructor
5252

5353
#### Defined in
5454

55-
[immudb-node/src/common/errors.ts:4](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L4)
55+
[immudb-node/src/common/errors.ts:4](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L4)
5656

5757
## Properties
5858

immudb-node-doc/immudb-node/classes/common_errors.InternalError.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
#### Defined in
5050

51-
[immudb-node/src/common/errors.ts:18](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L18)
51+
[immudb-node/src/common/errors.ts:18](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L18)
5252

5353
## Properties
5454

@@ -65,7 +65,7 @@
6565

6666
#### Defined in
6767

68-
[immudb-node/src/common/errors.ts:17](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L17)
68+
[immudb-node/src/common/errors.ts:17](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L17)
6969

7070
___
7171

immudb-node-doc/immudb-node/classes/common_errors.NoResponseValueError.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
#### Defined in
5050

51-
[immudb-node/src/common/errors.ts:26](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L26)
51+
[immudb-node/src/common/errors.ts:26](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L26)
5252

5353
## Properties
5454

@@ -58,7 +58,7 @@
5858

5959
#### Defined in
6060

61-
[immudb-node/src/common/errors.ts:25](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L25)
61+
[immudb-node/src/common/errors.ts:25](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L25)
6262

6363
___
6464

immudb-node-doc/immudb-node/classes/common_errors.OperationCanceledError.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
#### Defined in
5050

51-
[immudb-node/src/common/errors.ts:34](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L34)
51+
[immudb-node/src/common/errors.ts:34](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L34)
5252

5353
## Properties
5454

@@ -58,7 +58,7 @@
5858

5959
#### Defined in
6060

61-
[immudb-node/src/common/errors.ts:33](https://github.com/user3232/node-immu-db/blob/30c0d74/immudb-node/src/common/errors.ts#L33)
61+
[immudb-node/src/common/errors.ts:33](https://github.com/codenotary/immudb-node/blob/fe12060/immudb-node/src/common/errors.ts#L33)
6262

6363
___
6464

0 commit comments

Comments
 (0)