Skip to content

grunnverk/commands-publish

Repository files navigation

@grunnverk/commands-publish

Publishing workflow commands for kodrdriv - development, publish, and release.

Installation

npm install @grunnverk/commands-publish

Commands

development

Prepare package for development (bump version with -dev suffix).

kodrdriv development

publish

Publish package to npm with PR workflow.

kodrdriv publish --title "Release v1.0.0"

release

Create a GitHub release with changelog.

kodrdriv release

Usage

import { 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);

Lockfile Policy

kodrdriv publish enforces publish.lockfilePolicy as the canonical lockfile rule.

  • ignore (default): package-lock.json must not be tracked and must be ignored.
  • commit: package-lock.json must exist, be tracked, and not be ignored.

Example config:

{
  "publish": {
    "lockfilePolicy": "ignore"
  }
}

Migration

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"

Dependencies

  • @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

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors