Skip to content

Commit 5f0c70e

Browse files
author
Fabrice Bascoulergue
committed
Fix npm package cd
1 parent e60a4fe commit 5f0c70e

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

.github/workflows/cd.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,19 @@ jobs:
3434
- name: Run unit tests
3535
run: yarn test
3636

37-
- name: Run build lib, types and docs
38-
run: yarn build
37+
- name: Run clean
38+
run: yarn clean
39+
- name: Run build lib and types
40+
run: yarn build:lib
3941
- name: Copy LICENSE
4042
run: cp LICENSE build/LICENSE
4143
- name: Copy README
4244
run: cp README.md build/README.md
43-
- name: Copy sanitized package.json
45+
- name: Copy package.json
4446
run: cp package.json build/package.json
4547

4648
- name: Publish package to NPM
47-
run: npm publish
49+
run: npm publish ./build
4850
env:
4951
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5052

package.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"name": "@lum-network/sdk-javascript",
3-
"version": "0.1.1",
3+
"version": "0.1.3",
44
"license": "Apache-2.0",
55
"description": "Javascript SDK library for NodeJS and Web browsers to interact with the Lum Network.",
66
"homepage": "https://github.com/lum-network/sdk-javascript#readme",
7+
"main": "build/index.js",
8+
"typings": "build/index.d.ts",
79
"bugs": {
810
"url": "https://github.com/lum-network/sdk-javascript/issues"
911
},
@@ -14,10 +16,14 @@
1416
"type": "git",
1517
"url": "https://github.com/lum-network/sdk-javascript.git"
1618
},
17-
"main": "build/index.js",
18-
"typings": "build/index.d.ts",
19-
"files": [
20-
"build/*"
19+
"tags": [
20+
"lum-network",
21+
"sdk",
22+
"typescript",
23+
"blockchain",
24+
"rpc",
25+
"cosmos",
26+
"tendermint"
2127
],
2228
"scripts": {
2329
"test": "cross-env NODE_ENV=test jest",

tsconfig.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"rootDir": ".",
4-
"outDir": "build",
3+
"rootDir": "./src",
4+
"outDir": "build/build",
55
"resolveJsonModule": true,
66
"allowUnreachableCode": false,
77
"allowUnusedLabels": false,
@@ -26,6 +26,5 @@
2626
"out": "docs",
2727
"exclude": []
2828
},
29-
"include": ["src/**/*.ts", "test/**/*.ts"],
30-
"exclude": ["node_modules"]
29+
"exclude": ["build", "node_modules", "**/*.spec.ts", "tests/**"]
3130
}

0 commit comments

Comments
 (0)