Skip to content

Commit

Permalink
add note about production dependencies, closes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 9, 2020
1 parent 89a17a9 commit 21aa1c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ By default, this action will use a lock file like `package-lock.json` or `yarn.l
useLockFile: false
```

### Production dependencies

You can install just the production dependencies (without installing dev dependencies) by setting an environment variable `NODE_ENV` variable

```yml
- uses: bahmutov/npm-install@v1
env:
NODE_ENV: production
```

## NPM

If you are writing your own GitHub Action and would like to use this action as a utility function, import it and run it.
Expand Down

0 comments on commit 21aa1c3

Please sign in to comment.