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

fix: publish script to work for workspace members #1101

Merged
merged 1 commit into from
May 2, 2023

Conversation

niklasad1
Copy link
Member

Close #1084

@niklasad1 niklasad1 requested a review from a team as a code owner April 26, 2023 09:03
@@ -74,24 +75,11 @@ for CRATE_DIR in ${ORDER[@]}; do
fi
done

# Wait again to make sure that the new version is published and available.
Copy link
Member Author

Choose a reason for hiding this comment

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

Latest cargo publishdoes indeed wait for registry to available so this is not needed anymore.


function read_toml () {
NAME=""
VERSION=""
NAME=$(grep "^name" ./Cargo.toml | sed -e 's/.*"\(.*\)"/\1/')
VERSION=$(grep "^version" ./Cargo.toml | sed -e 's/.*"\(.*\)"/\1/')
VERSION=$(grep "^version" $DIR/Cargo.toml | sed -e 's/.*"\(.*\)"/\1/')
Copy link
Member Author

Choose a reason for hiding this comment

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

we need to read the version from the workspace Cargo.toml and not each crate

cd - > /dev/null
done

echo "Tagging jsonrpsee@$VERSION"
set -x
git tag -a v$VERSION -m "Version $VERSION"
git tag -a -s v$VERSION -m "Version $VERSION"
Copy link
Member Author

Choose a reason for hiding this comment

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

sign the tag

Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

Looks sane to me if it appears to work when run :)

Copy link
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

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

Nice! 👍

I'm guessing the git-lab test is failing because of a difference in rust versions.

The term deprecated method has been replaced by deprecated associated function for tests/ui/incorrect/rpc/rpc_deprecated_method.rs

@niklasad1 niklasad1 merged commit daeec72 into master May 2, 2023
@niklasad1 niklasad1 deleted the na-fix-publish-script branch May 2, 2023 08:34
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.

[scripts]: publish release script doesn't support workspace members
3 participants