Skip to content

Commit

Permalink
Reset anchor step in publish workflow but avoid publishing in cargo f…
Browse files Browse the repository at this point in the history
…iels
  • Loading branch information
melisaguevara committed Nov 8, 2024
1 parent 8845e27 commit a92c866
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
id: release
uses: manovotny/[email protected]
# Setup Anchor to enable compilation and export of Solana programs
# - name: Setup Anchor & Build
# uses: metadaoproject/setup-anchor@v2
# with:
# anchor-version: "0.30.1"
# solana-cli-version: "1.18.21"
# node-version: "20.17.0"
# run: anchor build
- name: Setup Anchor & Build
uses: metadaoproject/setup-anchor@v2
with:
anchor-version: "0.30.1"
solana-cli-version: "1.18.21"
node-version: "20.17.0"
- run: anchor build
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion programs/svm-spoke/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "svm-spoke"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"

publish = false

[lib]
crate-type = ["cdylib", "lib"]
Expand Down
1 change: 1 addition & 0 deletions programs/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "test"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
publish = false

[lib]
crate-type = ["cdylib", "lib"]
Expand Down

0 comments on commit a92c866

Please sign in to comment.