Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: install soldeer in release workflow #867

Merged
merged 2 commits into from
Oct 22, 2024
Merged

ci: install soldeer in release workflow #867

merged 2 commits into from
Oct 22, 2024

Conversation

sripwoud
Copy link
Contributor

@sripwoud sripwoud commented Oct 2, 2024

Fix soldeer cli setup in release workflow.
soldeer push needs an authentication token.
However https://soldeer.xyz does not allow for creating api tokens or create teams.
So I had to retrieve the token generated with a personal account locally.
Token was retrieved with:

soldeer login
cat ~/.soldeer/.soldeer_login

I added the content of this .soldeer_login file to the SOLDEER_TOKEN repo secret.

Once we have a shared mail address for the semaphore team. We should update the email address and token tied to the semaphore-protocol-contracts soldeer project.

Test

See this comment in branch used for testing

* chore: trigger release workflow

* chore: format

* ci: set `soldeer` credentials in github workspace

* chore: remove commentouts

* chore: add back tag trigger
@@ -37,6 +47,7 @@ jobs:
run: yarn version:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SOLDEER_LOGIN_FILE: ${{ github.workspace }}/soldeer_login
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use of this env var undocumented in the soldeer readme.
I found it in the source code directly
https://github.com/mario-eth/soldeer/blob/c3d70821ed7ef7a3d9264a6872139446c48cac5a/crates/core/src/utils.rs#L62

Copy link
Member

@cedoor cedoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @sripwoud 🙏🏽

@cedoor cedoor merged commit 6c9ede6 into main Oct 22, 2024
5 checks passed
@cedoor cedoor deleted the ci/soldeer branch October 22, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants