Publishing workflow commands for kodrdriv - development, publish, and release.
npm install @grunnverk/commands-publishPrepare package for development (bump version with -dev suffix).
kodrdriv developmentPublish package to npm with PR workflow.
kodrdriv publish --title "Release v1.0.0"Create a GitHub release with changelog.
kodrdriv releaseimport { development, publish, release } from '@grunnverk/commands-publish';
// Execute development command
await development(config);
// Execute publish command
await publish(config);
// Execute release command
await release(config);kodrdriv publish enforces publish.lockfilePolicy as the canonical lockfile rule.
ignore(default):package-lock.jsonmust not be tracked and must be ignored.commit:package-lock.jsonmust exist, be tracked, and not be ignored.
Example config:
{
"publish": {
"lockfilePolicy": "ignore"
}
}Move repository to ignore policy:
echo "package-lock.json" >> .gitignore
git rm --cached package-lock.json
git commit -m "chore: enforce lockfile ignore policy"Move repository to commit policy:
npm install --package-lock-only --no-audit --no-fund
git add package-lock.json
git commit -m "chore: track lockfile"@grunnverk/core- Core utilities and types@grunnverk/commands-git- Git workflow commands@grunnverk/git-tools- Git operations@grunnverk/github-tools- GitHub API interactions@grunnverk/ai-service- AI-powered content generation
Apache-2.0