You should build and test the release before deploying them:
- Install node dependencies:
npm install
- Update the version in
package.json
- Run:
npm run gulp -- build
To deploy to Amazon S3, please create the corresponding configuration
files in /aws-config/[environment].json
.
For security, those files should not be included on the repository.
Examples:
{
"key": "YOUR_S3_KEY",
"secret": "YOUR_S3_SECRET",
"bucket": "code-stage.quirkbot.com",
"region": "us-east-1"
}
{
"key": "YOUR_S3_KEY",
"secret": "YOUR_S3_SECRET",
"bucket": "code.quirkbot.com",
"region": "us-east-1"
}
Before deploying, please run the "Building Releases" instructions and make sure everything works as desired. When you are ready to deploy:
- Update the version in
package.json
- Run:
npm run gulp -- deploy --environment=stage
or
npm run gulp -- deploy --environment=production
- When you are completely satisfied with the deployed release, run:
npm publish
- Create a git tag.
- Make a manual Github release and upload the generated quirkbot-arduino-library-*.zip.