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
- Deploy
mainto production, the default environment (--env stagingpicks another). It creates the release and deploys it:Shellnpx veryfront deploy - Read the output. You should now see
Deployed … to productionand 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.