Errr, how? I am familiar with the practice of precommitment, but most of the ways of creating one for oneself seem to rely on consequences not preferred by one's values. If one's values have changed, then, such a precommitment isn't very helpful.
In the context of the thread we're not talking about all your values changing, just some subset. Base the precommitment round a value you do not expect to change. Money is a reliable fallback due to it's fungibility.
A few examples (in approximately increasing order of controversy):
If you proceed anyway...