It is increasingly common for publishers to have a Data Availability Policy that sets the conditions for the availability of data underlying publications. Policies are listed on the publisher’s website. For a search interface to policies, see FAIRsharing.
Two well-known examples from publishers are:
Nature: "Supporting data must be made available to editors and peer reviewers at the time of submission for the purposes of evaluating the manuscript. All manuscripts reporting original research published in Nature journals must include a data availability statement (see http://www.nature.com/news/announcement-where-are-the-data-1.20541)."
PLOS: "PLOS journals require authors to make all data underlying the findings described in their manuscript fully available without restriction at the time of publication. When specific legal or ethical requirements prohibit public sharing of a dataset, authors must indicate how researchers may obtain access to the data."