Without additional information, a button tag is useless. To react to clicks from visitors, a button tag needs the onclick attribute.

<html>
<head>
  <script src="script.js"></script>
</head>
<body>
  <button onclick="">Publish website</button>
  <p id="prompt"></p>
</body>
</html>]]>

Make sure to add onclick="".