Skip to content

Conversation

@cbush
Copy link
Contributor

@cbush cbush commented Mar 25, 2019

Please run contrib/update_browser_readme_version.sh when releasing/publishing
docs.

@coveralls
Copy link

coveralls commented Mar 25, 2019

Coverage Status

Coverage remained the same at 79.33% when pulling 3a2ae7d on cbush:add-readme-version-updater into 8ebc601 on mongodb:master.

@cbush cbush requested review from adamchel and dkaminsky March 25, 2019 15:26
Copy link
Contributor

@adamchel adamchel left a comment

Choose a reason for hiding this comment

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

Looks good, except that the changes need to get committed before a publish. should be good after this but I wanna take another quick look then


```bash
lerna publish --force-publish="*"
./update_browser_readme_version.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

[minor] this should go before lerna publish, otherwise the READMEs on npmjs.com will show an old version.

sed -i '' \
-e "s#\(stitch-sdks/js/bundles/\)[0-9\.]*\(/stitch\)#\1$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH\2#g" \
../packages/browser/sdk/README.md
echo "README updated."
Copy link
Contributor

Choose a reason for hiding this comment

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

[minor] To make sure this gets committed before a publish you should add

git add ../packages/browser/sdk/README.md
git commit -m "Update SDK version to $VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH in relevant READMEs"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how I feel about adding git commands in a script... Wouldn't this violate the principle of least astonishment? I wouldn't expect a script to make a commit on my behalf.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put the reminder to commit in the contrib/README.md. Thoughts?

Please run contrib/update_browser_readme_version.sh when releasing/publishing
docs.
@cbush cbush force-pushed the add-readme-version-updater branch from d1da23a to 0f18a39 Compare March 26, 2019 20:22
@cbush cbush force-pushed the add-readme-version-updater branch from 0f18a39 to e77c88f Compare March 26, 2019 20:25
fi

echo "README updated."
git add -u "../packages/browser/sdk/README.md"
Copy link
Contributor

Choose a reason for hiding this comment

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

[q] why git add -u? we don't want to add all changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-u is just update which means it won't add that file if it wasn't already tracked. Not really necessary I suppose but it doesn't hurt either.

- Note in README that you should not do this on a dirty repo (though it
will fail out anyway)
@cbush cbush force-pushed the add-readme-version-updater branch from 1ca3847 to 3a2ae7d Compare March 28, 2019 17:18
Copy link
Contributor

@adamchel adamchel left a comment

Choose a reason for hiding this comment

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

LGTM

@cbush cbush merged commit 5d89580 into mongodb:master Mar 28, 2019
@cbush cbush deleted the add-readme-version-updater branch March 28, 2019 17:51
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.

3 participants