Add an example use of the should_publish setting