You appreciate your current employer, but you’ve finally landed the job of your dreams. As you exit the old for the new, make sure to exhibit a little etiquette, advises Nancy Michaels, a Fortune 500 consultant and creator of career prepu.com, which helps unemployed graduates become more marketable.

To avoid burning bridges:

Tell your boss first. While you might share everything with close colleagues, don’t dish about your departure before meeting with your manager. You certainly don’t want her to be the last to know you’re resigning—or worse, hear the news through the office rumor mill. Give at least two weeks’ notice, a month if possible.

Help the new hire.
It can be tricky to wrap up projects and train your replacement at the same time. But it’ll be easier for the newbie to learn directly from you, and you’ll foster a little goodwill with your boss. You never know when you might need a recommendation or have to reapply for a position at your old company.

Span the bridge. Ease the transition for your team by offering limited remote assistance via phone or email for the first couple of weeks after you leave. This should be done only during non-working hours so as to not jeopardize your new job. That way, both companies will be pleased with your performance and dedication.