chore(tools): Only use NPM_TOKEN if it's available
chore(tools): Only use NPM_TOKEN if it's available

The NPM_TOKEN environment variable is not available in builds from
forked branches. So only write an .npmrc if the variable is available.
Otherwise semantic-release will fail.

ctavan/jupp