-
-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy and Publish
Arpit Sheth edited this page Jul 31, 2020
·
4 revisions
This repo is configured to allow us to deploy the demo site to GitHub pages and publish the theme to NPM. It's good practice to do this anytime we're ready to release a updates to the Polaroid theme.
You can learn more about how I set it up from this Gatsby Theme development guide I wrote.
- Verify that your changes are working on a production build of your demo site
yarn workspace demo build
yarn workspace demo serve
- If everything is working, update the theme's version in the
/theme/package.json
file. This repo uses semantic versioning. - Commit your latest changes (to the
master
branch)
Typically, the deploy script will deploy whatever is on the master
branch for the demo site.
- Change directory to the demo site
cd demo
- Run the deploy command
yarn deploy
yarn workspace demo deploy
, because there is currently a bug where Gatsbly does not correctly prefix the paths.
- Review the changes on GitHub pages (https://shetharp.github.io/gatsby-theme-polaroid/)
- Verify that you are logged into npm by running
npm whoami
- Change directories into your theme workspace
cd theme
- Publish to npm!
npm publish --access-public