Skip to content

Commit 94f38fd

Browse files
authored
Fix JS workflow (#727)
1 parent 8da5965 commit 94f38fd

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ To perform a release, follow these steps:
5656
4. When this release is published, it will automatically trigger a CI workflow to publish the updated packages to NPM.
5757

5858
If you have a javascript package that shouldn't be published, simply add `"private": "true"` to the `package.json` file
59-
and it will be excluded from the publishing workflow.
59+
and it will be excluded from the publishing workflow. If you are creating a new public javascript package, you should add
60+
the following config option to `package.json`:
61+
62+
```
63+
"publishConfig": {
64+
"access": "public"
65+
},
66+
```
6067

6168
### pre-commit hooks
6269

price_pusher/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"url": "https://github.com/pyth-network/pyth-crosschain",
1717
"directory": "price_pusher"
1818
},
19+
"publishConfig": {
20+
"access": "public"
21+
},
1922
"scripts": {
2023
"test": "jest src/ --passWithNoTests",
2124
"build": "tsc",

price_service/client/js/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"url": "https://github.com/pyth-network/pyth-crosschain",
1717
"directory": "price_service/client/js"
1818
},
19+
"publishConfig": {
20+
"access": "public"
21+
},
1922
"scripts": {
2023
"test": "jest --testPathIgnorePatterns=.*.e2e.test.ts --passWithNoTests",
2124
"test:e2e": "jest --testPathPattern=.*.e2e.test.ts",

price_service/sdk/js/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"url": "https://github.com/pyth-network/pyth-crosschain.git",
1414
"directory": "price_service/sdk/js"
1515
},
16+
"publishConfig": {
17+
"access": "public"
18+
},
1619
"scripts": {
1720
"test": "jest",
1821
"build": "tsc",

target_chains/aptos/sdk/js/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"url": "https://github.com/pyth-network/pyth-crosschain",
1717
"directory": "target_chains/aptos/sdk/js"
1818
},
19+
"publishConfig": {
20+
"access": "public"
21+
},
1922
"scripts": {
2023
"test": "jest --passWithNoTests",
2124
"build": "tsc",

target_chains/cosmwasm/sdk/js/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"url": "https://github.com/pyth-network/pyth-crosschain",
1717
"directory": "target_chains/cosmwasm/sdk/js"
1818
},
19+
"publishConfig": {
20+
"access": "public"
21+
},
1922
"scripts": {
2023
"test": "jest --passWithNoTests",
2124
"build": "tsc",

target_chains/ethereum/sdk/js/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"url": "https://github.com/pyth-network/pyth-crosschain",
1717
"directory": "target_chains/ethereum/sdk/js"
1818
},
19+
"publishConfig": {
20+
"access": "public"
21+
},
1922
"scripts": {
2023
"test": "jest --passWithNoTests",
2124
"build": "tsc",

0 commit comments

Comments
 (0)