  In this work, we prove the existence of a family of solutions of the
Allen-Cahn equation with nonlinear Neumann boundary condition under some
constraints, whose nodal sets concentrate asymptotically to a given volume
nondegenerate capillary hypersurface in a compact Riemannian manifold. Our
construction is inspired by the works of Pacard and of Pacard and Ritor\'e.
