- Environment variables already set take precedence.
- Loads environment variables from a
.env.local
file in the root package's base path (meant to be ignored in git). Already existing environment variables take precedence. - Loads environment variables from a
.env
file in the root package's base path. Already existing environment variables take precedence.
import { loadEnvironment } from '@niondigital/env-util';
loadEnvironment('path/to/.env');
- Make changes and increase version number package.json/package-lock.json
- Execute
npm run build
- Commit changes
- Execute
npm publish && git push && git push --tags