File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,18 @@ $ yarn add dotenv-flow
29
29
30
30
## Usage
31
31
32
- As early as possible in your application, require and configure ** dotenv-flow** .
32
+ As early as possible in your Node.js application initialize ** dotenv-flow** :
33
33
34
34
``` js
35
35
require (' dotenv-flow' ).config ();
36
36
```
37
37
38
+ or, if you're using typescript:
39
+
40
+ ``` ts
41
+ import ' dotenv-flow/config' ;
42
+ ```
43
+
38
44
After this, you can access all the environment variables you have defined in your ` .env* ` files through ` process.env.* ` .
39
45
40
46
For example, let's suppose that you have the following ` .env* ` files in your project:
Original file line number Diff line number Diff line change 2
2
3
3
## Shipping a new version
4
4
5
- 1 . Ensure you've pushed all the necessary changes to the repo and tests are successfully passed on TravisCI
5
+ 1 . Make sure all the latest changes are pushed to the repo and all the related
6
+ workflow tests are passing on CI (https://github.com/kerimdzhanov/dotenv-flow/actions )
6
7
2 . Bump up the version in ` package.json `
7
8
3 . Update the ` CHANGELOG.md ` file using ` $ yarn changelog `
8
9
4 . Make a release commit with a message in format of ` chore(release): vX.Y.Z `
9
10
5 . Tag the release commit using ` $ git tag vX.Y.X `
10
- 6 . Push the release commit (including the tag) to GitHub ` $ git push && git push --tags `
11
- 7 . Publish the new package version using ` $ yarn publish [--tag=next] `
11
+ 6 . Push the release commit (with the tag) to GitHub ` $ git push && git push --tags `
12
+ 7 . Create a new version release on GitHub based on the created tag
13
+
14
+ > Once the release is published, Github Actions' workflow will build and publish the new package version to NPM.
You can’t perform that action at this time.
0 commit comments