cikit
CI toolkit for JavaScript applications.
Installation
$ npm install -g cikit
$ ci init
Configuration
export default {
os: ["ubuntu-latest", "windows-latest", "macos-latest"],
install: {
node: [18, 20],
pnpm: 8,
},
test: "vitest",
build: "rollup",
deploy: "wrangler deploy",
}
Run CI
$ ci
⌁ Installing node...
✦ Node.js v20.0.1 is already installed on the system
⌁ Installing pnpm...
✔︎ pnpm 8.0.1 is installed
✦ Found package.json, installing dependencies...
✔︎ Dependencies installed
◦ Running test task...
✔︎ `vitest` passed (5s)
◦ Running build task...
✔︎ `rollup` done (2s)
✦ CI changed, updating .github/workflows/ci.yml...
✔︎ Updated
Deploy
$ ci deploy
◦ Running deploy task...
✔︎ Deployed
Publish
$ ci publish
> 1.0.1
1.1.0
2.0.0
1.0.0-alpha.1
1.0.0-beta.1
1.0.0-rc.1