CI toolkit for JavaScript applications.
$ npm install -g cikit
$ ci init # initialize ci.js
// ci.js
export default {
os: ["ubuntu-latest", "windows-latest", "macos-latest"],
install: {
node: [18, 20],
pnpm: 8,
},
test: "vitest",
build: "rollup",
deploy: "wrangler deploy",
}
$ 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
$ ci deploy
◦ Running deploy task...
✔︎ Deployed
$ 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