Update CONTRIBUTING.md

This commit is contained in:
James Ives 2020-03-31 08:48:19 -04:00 committed by GitHub
parent 9a3cf1925d
commit cecb5ccb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,18 +11,33 @@ email, or any other method with the owners of this repository before making a ch
# Deploying # Deploying
In order to deploy and test your own fork of this action, you must commit the required `node_modules` dependencies. In order to deploy and test your own fork of this action, you must commit the required `node_modules` dependencies. Be sure to run `nvm use` before installing any dependencies. You can learn more about nvm [here](https://github.com/nvm-sh/nvm/blob/master/README.md).
To do this you can follow the instructions below: To do this you can follow the instructions below:
Install the project:
```
yarn install
```
Comment out the following in distribution branches:
``` ```
# comment out in distribution branches
# node_modules/ # node_modules/
``` ```
Build the project:
```
yarn build
```
Commit:
``` ```
$ git checkout -b branchnamehere $ git checkout -b branchnamehere
$ git commit -a -m "prod dependencies" $ git commit -a -m "prod dependencies"
``` ```
The `node_modules` folder should _not_ be included when making a pull request. The `node_modules` folder should _not_ be included when making a pull request. These are only required for GitHub Actions when it consumes the distribution branch branch, the `dev` branch of the project should be free from any dependencies or lib files.