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

chore: add a release script to makes things easier #4517

Merged
merged 2 commits into from
Jul 26, 2017

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Jul 25, 2017

I've been using this to release the 5.x branch for a while. I've also just ran it through http://www.shellcheck.net/

Copy link
Contributor

@brandonocasey brandonocasey left a comment

Choose a reason for hiding this comment

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

One comment LGTM other than that


echo grunt version:${rtype}
grunt version:${rtype}
version=$(./build/bin/version)
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to use something like this here:

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
version="$("$SCRIPT_DIR"/version)"

This will allow you to use the script outside of the root directory of video.js without issues

Copy link
Member

Choose a reason for hiding this comment

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

I like this idea - I use something similar in my horrible bash scripts. 😉

Copy link
Member 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 we want to allow that, though. I think some of the grunt scripts depend on being in the root.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we could just have the script cd to the video.js root dir when we start it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm also a bit weary of changing this script since I know it works as is. I would prefer to just document that you need to run this from the root of the project and we can fix it later if this becomes a problem.

@gkatsev gkatsev merged commit 9ca9989 into videojs:5.x Jul 26, 2017
@gkatsev gkatsev deleted the release-next-script branch July 26, 2017 19:39
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