Skip to content

Commit

Permalink
chore: prepare Pyth Lazer packages publish (pyth-network#2120)
Browse files Browse the repository at this point in the history
* chore: prepare lazer js sdk publish

* chore: prepare pyth lazer rust packages publish
  • Loading branch information
Riateche authored and NourAlharithi committed Dec 18, 2024
1 parent 5b4abe0 commit 301774b
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 9 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish-rust-lazer-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Rust package pyth-lazer-solana-contract to crates.io

on:
push:
tags:
- rust-pyth-lazer-solana-contract-v*
jobs:
publish-pyth-lazer-solana-contract:
name: Publish Rust package pyth-lazer-solana-contract to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
working-directory: "lazer/contracts/solana/programs/pyth-lazer-solana-contract"
18 changes: 18 additions & 0 deletions .github/workflows/publish-rust-lazer-protocol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Rust package pyth-lazer-protocol to crates.io

on:
push:
tags:
- rust-pyth-lazer-protocol-v*
jobs:
publish-pyth-lazer-protocol:
name: Publish Rust package pyth-lazer-protocol to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
working-directory: "lazer/sdk/rust/protocol"
18 changes: 18 additions & 0 deletions .github/workflows/publish-rust-lazer-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Rust package pyth-lazer-sdk to crates.io

on:
push:
tags:
- rust-pyth-lazer-sdk-v*
jobs:
publish-pyth-lazer-sdk:
name: Publish Rust package pyth-lazer-sdk to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
working-directory: "lazer/sdk/solana"
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[package]
name = "pyth-lazer-solana-contract"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
description = "Pyth Lazer Solana contract."
license = "Apache-2.0"
repository = "https://github.com/pyth-network/pyth-crosschain"

[lib]
crate-type = ["cdylib", "lib"]
Expand Down
26 changes: 20 additions & 6 deletions lazer/sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "pyth-lazer-sdk",
"version": "1.0.0",
"description": "pyth-lazer-sdk",
"private": "true",
"name": "@pythnetwork/pyth-lazer-sdk",
"version": "0.1.0",
"description": "Pyth Lazer SDK",
"publishConfig": {
"access": "public"
},
"files": [
"lib/**/*"
],
"scripts": {
"build:cjs": "tsc --project tsconfig.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"build:esm": "tsc --project tsconfig.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json",
Expand Down Expand Up @@ -31,8 +36,17 @@
"url": "https://github.com/pyth-lazer-sdk/pyth-lazer-sdk/issues"
},
"type": "module",
"homepage": "https://github.com/pyth-lazer-sdk/pyth-lazer-sdk#readme",
"keywords": [],
"homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js",
"repository": {
"type": "git",
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "lazer/sdk/js"
},
"keywords": [
"pyth",
"oracle"
],
"license": "Apache-2.0",
"dependencies": {
"isomorphic-ws": "^5.0.0",
"ws": "^8.18.0"
Expand Down
3 changes: 3 additions & 0 deletions lazer/sdk/rust/protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "pyth-lazer-protocol"
version = "0.1.0"
edition = "2021"
description = "Pyth Lazer SDK - protocol types."
license = "Apache-2.0"
repository = "https://github.com/pyth-network/pyth-crosschain"

[dependencies]
byteorder = "1.4.3"
Expand Down
7 changes: 5 additions & 2 deletions lazer/sdk/solana/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
name = "pyth-lazer-sdk"
version = "0.1.0"
edition = "2021"
description = "Pyth Lazer SDK"
license = "Apache-2.0"
repository = "https://github.com/pyth-network/pyth-crosschain"

[dependencies]
pyth-lazer-protocol = { path = "../rust/protocol" }
pyth-lazer-solana-contract = { path = "../../contracts/solana/programs/pyth-lazer-solana-contract", features = ["no-entrypoint"] }
pyth-lazer-protocol = { version = "0.1.0", path = "../rust/protocol" }
pyth-lazer-solana-contract = { version = "0.1.0", path = "../../contracts/solana/programs/pyth-lazer-solana-contract", features = ["no-entrypoint"] }

solana-program = "1.16"
bytemuck = { version = "1.4.0", features = ["derive"] }
Expand Down

0 comments on commit 301774b

Please sign in to comment.