Publish

Publishing makes a release from a branch, a frozen copy of its files, and deploys it to an environment.

Before you start

You need a change you have previewed. See Preview changes.

Publish a branch

  1. Deploy main to production, the default environment (--env staging picks another). It creates the release and deploys it:
    Shell
    npx veryfront deploy
  2. Read the output. You should now see Deployed … to production and the release's version.

Troubleshooting

If you see "The latest push is for branch "new-headline", but deploy targets "main"", you merged a branch after your last push, and deploy only trusts what you pushed yourself. Run npx veryfront push, then npx veryfront deploy again.

Next steps