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

Automatically make highest tag the latest release #1

Closed
austinpray opened this issue Dec 19, 2018 · 5 comments · Fixed by roots/wordpress-packager#563
Closed

Automatically make highest tag the latest release #1

austinpray opened this issue Dec 19, 2018 · 5 comments · Fixed by roots/wordpress-packager#563

Comments

@austinpray
Copy link
Contributor

austinpray commented Dec 19, 2018

Maybe throw build notes in release?

Edit: Note that everything is tagged automatically, this is purely to get that nice github release UI image

@johnbillion
Copy link

Thanks for this repo, it's just what's needed :-)

I'm converting my plugin's install-wp-tests.sh-based testing setup on Travis CI to use this package instead (along with wp-phpunit/wp-phpunit) and I'd like to retain the ability to lazily test against the latest version of WordPress without having to update the WordPress version number in my Travis config each time there's a new release.

Currently this is achieved by specifying the WP_VERSION=latest environment variable, which install-wp-tests.sh uses as an indication to check the w.org API to fetch the latest tag.

I'd therefore like to use a Composer dependency that looks something like roots/wordpress=latest which corresponds to a branch in this repo that always contains the latest stable release (ie. the highest tag). Is that what this issue is about? If so, a big +1 from me :-)

@johnbillion
Copy link

johnbillion commented Mar 15, 2019

Actually, roots/wordpress=dev-master provides this from the look of things, but this requires minimum-stability: dev in the root, which I don't really want. Would a separate branch that tracked master do the trick? Not sure.

@johnbillion johnbillion mentioned this issue Mar 15, 2019
3 tasks
@johnbillion
Copy link

More rubber ducking: roots/wordpress=* looks to be the answer.

@austinpray
Copy link
Contributor Author

Hey @johnbillion!

So this issue was for purely to make a github API call to map a git tag to a github release to get the nice UI. I updated the original post with details.

And yes dev-master is pinned at the latest release so people can track latest WP version for CI tests and stuff. To do this you would specify both "minimum-stability": "dev" and "prefer-stable": true

But yeah looks like roots/wordpress=* might be better anyway

@shivapoudel
Copy link

@austinpray Can * results in the same behavior as latest and how to use nightly? I am using this with Github action and in a matrix, I don't want to index * instead use this latest. Overall need support for roots/wordpress="latest|nightly" so how can I do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants