Skill站外收录 @skilllib/skill-2014279403742638082
hdwallet-verdaccio-local-publish-pipeline
自动化完成 hdwallet 包的本地构建、语义化版本管理、向 Verdaccio 私有仓库发布,以及在 Web 项目中同步更新所有相关依赖版本,支持快速验证功能变更与跨仓库集成。
软件开发 AI 技能
Skills.MD
# hdwallet-verdaccio-local-publish-pipeline
This skill automates the complete hdwallet local publish pipeline.
## Pipeline Steps
This skill runs the complete hdwallet publish pipeline:
### 0. Configure registry for Verdaccio (REQUIRED - FIRST PUBLISH IN SESSION)
**IMPORTANT:** This must be done at the START of every new Claude session before any publish.
The registry config does NOT persist between Claude sessions.
Run in BOTH repos (hdwallet AND web):
```bash
yarn config set npmRegistryServer http://127.0.0.1:4873 && npm set registry http://127.0.0.1:4873
```
Verify with: `npm config get registry` (should show `http://127.0.0.1:4873`)
Once configured for this session, follow-up publishes don't need to run this again.
### 1. Build hdwallet
In the hdwallet repo (`../shapeshiftHdWallet`, or whichever is the path for hdwallet):
- `yarn && yarn build`
### 2. Version and publish to verdaccio
- Ask user for semver feature name (FIRST TIME ONLY)
- Must be either a single word OR use hyphens as delimiters (e.g., `sol-sig-fix`, not `sol_sig_fix`)
- Underscores are NOT allowed in npm package versions
- Determine the alpha version:
- Current version (e.g., `1.62.5`) → next is `1.62.6-<feature-name>.0`
- If already on an alpha (e.g., `1.62.6-<feature-name>.0`) → increment to `.1`, `.2`, etc.
- Version packages: `npx lerna version prerelease --preid <feature-name> --no-git-tag-version --no-push --yes`
- Commit version changes: `git add -A && git commit -m "chore: version packages to <version>"`
- Publish: `npx lerna publish from-package --no-git-tag-version --no-push --yes`
### 3. Update web repo dependencies
In the ShapeShift web repo (Current repo clause is being ran from):
- `yarn up '@shapeshiftoss/hdwallet-*@<version>'`
### 4. Verify all hdwallet references were updated
After running `yarn up`, verify that ALL package.json files with hdwallet dependencies were updated:
- Root `package.json`
- `packages/chain-adapters/package.json`
- `packages/swapper/package.json`
**Verification commands:**
```bash
grep "@shapeshiftoss/hdwallet-" package.json | head -20
grep "@shapeshiftoss/hdwallet-" packages/chain-adapters/package.json
grep "@shapeshiftoss/hdwallet-" packages/swapper/package.json
```
**If any packages were NOT updated:**
Simply edit the files directly and replace the old version with the new version:
- Edit `packages/chain-adapters/package.json`
- Edit `packages/swapper/package.json`
- Find/replace old hdwallet version with new version
## Important Notes
- Assumes user ran Claude from web repo with `--add-dir ../shapeshiftHdWallet` (or their hdwallet dir)
- Verdaccio must be running on `http://127.0.0.1:4873`
- Feature name must use hyphens, not underscores (npm version requirement)
- If lerna publish fails due to uncommitted changes, commit them first
- The publish process rebuilds all packages automatically (prepublishOnly hooks)
## Example
```bash
# First alpha for a new feature
1.62.5 → 1.62.6-sol-sig-fix.0
# Subsequent alphas
1.62.6-sol-sig-fix.0 → 1.62.6-sol-sig-fix.1
1.62.6-sol-sig-fix.1 → 1.62.6-sol-sig-fix.2
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「hdwallet-verdaccio-local-publish-pipeline」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次