Skip to content

Commit 1faae18

Browse files
chore: broaden dependency range on the magic program api (#609)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Replaced workspace-wide dependencies with explicit version constraints for underlying libraries to improve build consistency. * Preserved existing serde derive feature while pinning its version. * No changes to public APIs or exported behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 8556226 commit 1faae18

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/publish-packages.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish ephemeral validator packages
1+
name: Publish ephemeral validator packages and crates
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
@@ -213,4 +213,20 @@ jobs:
213213
npm publish --access public
214214
fi
215215
env:
216-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
216+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
217+
218+
- name: cargo publish
219+
working-directory: magicblock-magic-program-api/
220+
run: |
221+
DRY_RUN_FLAG=""
222+
if [ "${DRY_RUN}" = "true" ]; then
223+
DRY_RUN_FLAG="--dry-run"
224+
fi
225+
226+
if [ "${DRY_RUN}" = "true" ]; then
227+
NO_VERIFY_FLAG="--no-verify"
228+
fi
229+
cargo publish $DRY_RUN_FLAG --manifest-path=./Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
230+
env:
231+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
232+
DRY_RUN: ${{ env.DRY_RUN }}

magicblock-magic-program-api/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ homepage.workspace = true
99
edition.workspace = true
1010

1111
[dependencies]
12-
solana-program = { workspace = true }
13-
bincode = { workspace = true }
14-
serde = { workspace = true, features = ["derive"] }
12+
solana-program = ">0"
13+
bincode = ">0"
14+
serde = { version = ">0", features = ["derive"] }

0 commit comments

Comments
 (0)