Skip to content

Commit

Permalink
chore: add npm script to deploy to netlify
Browse files Browse the repository at this point in the history
It requires an env variable, NETLIFY_SITE_ID, set
to the ID of the netlify site to deploy to.
  • Loading branch information
davidballester committed Aug 6, 2019
1 parent 4e63b84 commit 39d8ac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "netlify deploy --prod --dir build --site ${NETLIFY_SITE_ID}"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit 39d8ac1

Please sign in to comment.