Skip to content

Commit fb09981

Browse files
authored
chore: prepare Pyth Lazer packages publish (#2120)
* chore: prepare lazer js sdk publish * chore: prepare pyth lazer rust packages publish
1 parent 6ab4457 commit fb09981

File tree

7 files changed

+85
-9
lines changed

7 files changed

+85
-9
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Rust package pyth-lazer-solana-contract to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- rust-pyth-lazer-solana-contract-v*
7+
jobs:
8+
publish-pyth-lazer-solana-contract:
9+
name: Publish Rust package pyth-lazer-solana-contract to crates.io
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
working-directory: "lazer/contracts/solana/programs/pyth-lazer-solana-contract"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Rust package pyth-lazer-protocol to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- rust-pyth-lazer-protocol-v*
7+
jobs:
8+
publish-pyth-lazer-protocol:
9+
name: Publish Rust package pyth-lazer-protocol to crates.io
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
working-directory: "lazer/sdk/rust/protocol"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Rust package pyth-lazer-sdk to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- rust-pyth-lazer-sdk-v*
7+
jobs:
8+
publish-pyth-lazer-sdk:
9+
name: Publish Rust package pyth-lazer-sdk to crates.io
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
working-directory: "lazer/sdk/solana"

lazer/contracts/solana/programs/pyth-lazer-solana-contract/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[package]
22
name = "pyth-lazer-solana-contract"
33
version = "0.1.0"
4-
description = "Created with Anchor"
54
edition = "2021"
5+
description = "Pyth Lazer Solana contract."
6+
license = "Apache-2.0"
7+
repository = "https://github.com/pyth-network/pyth-crosschain"
68

79
[lib]
810
crate-type = ["cdylib", "lib"]

lazer/sdk/js/package.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
2-
"name": "pyth-lazer-sdk",
3-
"version": "1.0.0",
4-
"description": "pyth-lazer-sdk",
5-
"private": "true",
2+
"name": "@pythnetwork/pyth-lazer-sdk",
3+
"version": "0.1.0",
4+
"description": "Pyth Lazer SDK",
5+
"publishConfig": {
6+
"access": "public"
7+
},
8+
"files": [
9+
"lib/**/*"
10+
],
611
"scripts": {
712
"build:cjs": "tsc --project tsconfig.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
813
"build:esm": "tsc --project tsconfig.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json",
@@ -31,8 +36,17 @@
3136
"url": "https://github.com/pyth-lazer-sdk/pyth-lazer-sdk/issues"
3237
},
3338
"type": "module",
34-
"homepage": "https://github.com/pyth-lazer-sdk/pyth-lazer-sdk#readme",
35-
"keywords": [],
39+
"homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js",
40+
"repository": {
41+
"type": "git",
42+
"url": "https://github.com/pyth-network/pyth-crosschain",
43+
"directory": "lazer/sdk/js"
44+
},
45+
"keywords": [
46+
"pyth",
47+
"oracle"
48+
],
49+
"license": "Apache-2.0",
3650
"dependencies": {
3751
"isomorphic-ws": "^5.0.0",
3852
"ws": "^8.18.0"

lazer/sdk/rust/protocol/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name = "pyth-lazer-protocol"
33
version = "0.1.0"
44
edition = "2021"
5+
description = "Pyth Lazer SDK - protocol types."
6+
license = "Apache-2.0"
7+
repository = "https://github.com/pyth-network/pyth-crosschain"
58

69
[dependencies]
710
byteorder = "1.5.0"

lazer/sdk/solana/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
name = "pyth-lazer-sdk"
33
version = "0.1.0"
44
edition = "2021"
5+
description = "Pyth Lazer SDK"
6+
license = "Apache-2.0"
7+
repository = "https://github.com/pyth-network/pyth-crosschain"
58

69
[dependencies]
7-
pyth-lazer-protocol = { path = "../rust/protocol" }
8-
pyth-lazer-solana-contract = { path = "../../contracts/solana/programs/pyth-lazer-solana-contract", features = ["no-entrypoint"] }
10+
pyth-lazer-protocol = { version = "0.1.0", path = "../rust/protocol" }
11+
pyth-lazer-solana-contract = { version = "0.1.0", path = "../../contracts/solana/programs/pyth-lazer-solana-contract", features = ["no-entrypoint"] }
912

1013
solana-program = "1.18.26"
1114
bytemuck = { version = "1.18.0", features = ["derive"] }

0 commit comments

Comments
 (0)