GitHub Actions

Pull Request workflow

Test, version, build, deploy.

Test

Create a Secrets and variables > Actions > Repository secrets variable named CI_ENV_FILE containing your .env file contents.

See .env.example file to know which variables are required.

Build artifact

The bundle.tar.xz release artifact uploaded to GitHub contains all the files needed for a production deployment.

package.json

pnpm-lock.yaml

Webhooks

GHA can POST to your infra so it knows to download the latest release artifact and deploy it.

Download and unpack the artifact

Provide your .env file

Install only the dependencies required for runtime

pnpm install --frozen-lockfile --prod