CI/CD
Shevky builds are deterministic and well-suited for CI/CD pipelines. The core commands are:
npm ci
npm run buildThe dist/ directory is the deployable artifact.
Generic Pipeline Steps
- Checkout - clone the repository.
- Setup Node - install Node.js 18+.
- Install dependencies -
npm cifor reproducible installs. - Build -
npm run buildto generatedist/. - Deploy - upload
dist/to the target platform.
Example: GitHub Actions
See GitHub Pages for a complete workflow example.
Example: GitLab CI
build:
image: node:20-alpine
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/Tips
- Set
build.minify: trueandbuild.debug: falsein CI builds. - Set
identity.urlto the production URL via a pre-build script or environment-specific config. - Plugin errors are logged but do not fail the build by default - consider adding a post-build validation step.