ShipNode generates a ready-to-use GitHub Actions workflow.
npx shipnode ci githubThis writes .github/workflows/deploy.yml that:
- Checks out the repo
- Installs deps with your package manager
- Sets up SSH using a secret deploy key
- Runs
npx shipnode deploy
Required secrets
Section titled “Required secrets”The workflow expects the following GitHub repository secrets:
| Secret | Purpose |
|---|---|
SHIPNODE_SSH_KEY | Private key for the deploy user. |
SHIPNODE_SSH_HOST | Server hostname (matches shipnode.config.ts). |
SHIPNODE_ENV | The full .env contents to materialize on the runner. |
Sync the env automatically:
npx shipnode ci env-sync --allMultiple environments
Section titled “Multiple environments”Duplicate the workflow file (e.g. deploy-staging.yml) and pass --config shipnode.staging.config.ts to the deploy step.