From a92c866b10907594f4b16b99181f575695eba151 Mon Sep 17 00:00:00 2001 From: Melisa Guevara Date: Fri, 8 Nov 2024 13:38:31 -0500 Subject: [PATCH] Reset anchor step in publish workflow but avoid publishing in cargo fiels --- .github/workflows/publish.yml | 14 +++++++------- programs/svm-spoke/Cargo.toml | 2 +- programs/test/Cargo.toml | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d49dfce2f..d8b919651 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,13 +23,13 @@ jobs: id: release uses: manovotny/github-releases-for-automated-package-publishing-action@v2.0.1 # 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: diff --git a/programs/svm-spoke/Cargo.toml b/programs/svm-spoke/Cargo.toml index a6285a5d2..df751dec1 100644 --- a/programs/svm-spoke/Cargo.toml +++ b/programs/svm-spoke/Cargo.toml @@ -3,7 +3,7 @@ name = "svm-spoke" version = "0.1.0" description = "Created with Anchor" edition = "2021" - +publish = false [lib] crate-type = ["cdylib", "lib"] diff --git a/programs/test/Cargo.toml b/programs/test/Cargo.toml index 6c00010cc..ba5c70757 100644 --- a/programs/test/Cargo.toml +++ b/programs/test/Cargo.toml @@ -3,6 +3,7 @@ name = "test" version = "0.1.0" description = "Created with Anchor" edition = "2021" +publish = false [lib] crate-type = ["cdylib", "lib"]