add action that installs NPM dependencies and caches them

It is an action for projects that need to run `npm ci` or `yarn --frozen-lockfile` to install NPM dependencies and cache them

```yml
name: main
on: [push]
jobs:
  build-and-test:
    runs-on: ubuntu-latest
    name: Build and test
    steps:
      - uses: actions/checkout@v1
      - uses: bahmutov/npm-install@v1
      - run: npm t
```
This commit is contained in:
Gleb Bahmutov 2019-12-05 07:58:57 -05:00 committed by GitHub
parent 24c2332778
commit 93ac1eb660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,6 +206,7 @@ https://github.com/sdras/awesome-actions/workflows/Lint%20Awesome%20List/badge.s
- [Create Milestone](https://github.com/WyriHaximus/github-action-create-milestone) - Create a new open milestone given the title and description.
- [Close Milestone](https://github.com/WyriHaximus/github-action-close-milestone) - Close the given milestone.
- [Action to enforce branch naming rules](https://github.com/deepakputhraya/action-branch-name)
- [Install NPM dependencies with caching](https://github.com/bahmutov/npm-install)
### Testing and Linting