publish-to-npm

Automate version bumps, builds, and npm publishing for @deepfuture packages.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/deepfuturenow/dui --skill publish-to-npm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: publish-to-npm
Source: https://github.com/deepfuturenow/dui/tree/main/.agents/skills/publish-to-npm
Command: npx skills add https://github.com/deepfuturenow/dui --skill publish-to-npm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This release workflow automates bumping versions across all DUI packages, builds, verifies, and publishes to the @deepfuture npm org, ensuring a synchronized release.

Core Features & Use Cases

  • Lockstep release of all DUI packages (@deepfuture/dui-components, @deepfuture/dui-templates, @deepfuture/dui-cdn) with a single version bump.
  • Pre-publish checks: verifies clean working tree, prompts for the new version, builds artifacts, and runs dry-run publishing to catch issues before release.
  • Use Case: You need to push a coordinated, version-consistent DUI release to npm for production deployment and downstream consumers.

Quick Start

Trigger the release workflow to publish a new DUI version to npm.

Frequently Asked Questions about publish-to-npm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish multiple npm packages in a synchronized release?

To publish multiple npm packages in a synchronized release, you automate version bumps, builds, and verifications across all targets before pushing to the registry. This lockstep approach ensures all packages share a single version tag for downstream consumers.

What is a lockstep release workflow for npm packages?

A lockstep release workflow for npm packages bumps versions across all packages simultaneously, builds artifacts, runs dry-run checks, and publishes in one coordinated sequence. This prevents version mismatch issues in production deployments.

What do I need before automating an npm publish workflow?

Before automating an npm publish workflow, you need a clean git working tree, npm login credentials for your organization, and a selected new version number. Pre-publish checks verify these requirements before building artifacts.

How does a dry-run publish check prevent npm release failures?

A dry-run publish check prevents npm release failures by simulating the publishing process to catch issues before the actual release. It runs after building artifacts and before the final npm publish step and git tagging.

Can I publish to npm if my git working tree is not clean?

Publishing to npm requires a clean working tree as a pre-publish check. The release workflow will prompt you to commit or stash uncommitted changes before proceeding with version bumps, builds, and npm publishing.

Why do my npm packages need git tagging after publishing?

Git tagging after npm publishing marks the exact commit associated with the synchronized release version. This ensures traceability between the published npm artifacts and the source code state for all packages.