File tree Expand file tree Collapse file tree 4 files changed +59
-14
lines changed Expand file tree Collapse file tree 4 files changed +59
-14
lines changed Original file line number Diff line number Diff line change 10
10
branches : [ "main" ]
11
11
12
12
jobs :
13
- build :
13
+ test :
14
14
15
15
runs-on : ubuntu-latest
16
16
@@ -27,12 +27,39 @@ jobs:
27
27
node-version : ${{ matrix.node-version }}
28
28
cache : ' npm'
29
29
- run : |
30
- sudo apt-get -y update
31
- sudo apt-get -y install build-essential
32
- - run : git clone https://github.com/crossdb-org/crossdb.git
33
- - run : cd crossdb
34
- - run : make build
35
- - run : make install
30
+ sudo apt-get -y update
31
+ sudo apt-get -y install build-essential software-properties-common gcc gdb make
32
+ - run : |
33
+ git clone https://github.com/crossdb-org/crossdb.git
34
+ cd crossdb
35
+ make build
36
+ sudo make install
37
+ cd ..
36
38
- run : npm ci
37
39
- run : npm run build --if-present
38
40
- run : npm test
41
+
42
+ publish-npm :
43
+ needs : test
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - uses : actions/checkout@v4
47
+ - uses : actions/setup-node@v4
48
+ with :
49
+ node-version : 20
50
+ registry-url : https://registry.npmjs.org/
51
+ - run : |
52
+ sudo apt-get -y update
53
+ sudo apt-get -y install build-essential software-properties-common gcc gdb make
54
+ - run : |
55
+ git clone https://github.com/crossdb-org/crossdb.git
56
+ cd crossdb
57
+ make build
58
+ sudo make install
59
+ cd ..
60
+ - run : npm ci
61
+ - run : npm run build --if-present
62
+ - run : npm publish --access public
63
+ env :
64
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
65
+
Original file line number Diff line number Diff line change 1
1
build /
2
2
node_modules /
3
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ @croosdb:registry = https://registry.npmjs.org/
2
+ scope = @croosdb
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " crossdb" ,
3
- "version" : " 1.0 .0" ,
2
+ "name" : " @croosdb/ crossdb-nodejs " ,
3
+ "version" : " 1.2 .0" ,
4
4
"main" : " index.js" ,
5
+ "author" : " Efrem Ropelato" ,
6
+ "contributors" :[
7
+ {
8
+ "name" : " Efrem Ropelato" ,
9
+
10
+ "url" : " https://efremropelato.github.io/"
11
+ }
12
+ ],
13
+ "license" : " MIT" ,
14
+ "description" : " CroosDB Nodejs driver" ,
15
+ "keywords" : [],
5
16
"gypfile" : true ,
17
+ "repository" : {
18
+ "type" : " git" ,
19
+ "url" :
" [email protected] :crossdb-org/crossdb-nodejs.git"
20
+ },
21
+ "bugs" : {
22
+ "url" : " https://github.com/crossdb-org/crossdb-nodejs/issues"
23
+ },
6
24
"scripts" : {
7
25
"test" : " node example/index.js" ,
8
26
"build:dev" : " node-gyp -j 16 build --debug" ,
9
27
"build" : " node-gyp -j 16 build" ,
10
28
"rebuild:dev" : " node-gyp -j 16 rebuild --debug" ,
11
29
"rebuild" : " node-gyp -j 16 rebuild" ,
12
- "clean" : " node-gyp clean"
30
+ "clean" : " node-gyp clean" ,
31
+ "install" : " node-gyp rebuild"
13
32
},
14
- "keywords" : [],
15
- "author" : " " ,
16
- "license" : " MIT" ,
17
- "description" : " " ,
18
33
"dependencies" : {
19
34
"bindings" : " ^1.5.0" ,
20
35
"node-addon-api" : " ^8.2.2"
You can’t perform that action at this time.
0 commit comments