Configures DevClaw package for publishing to npm registry with automated GitHub Actions workflow and comprehensive publishing documentation. Changes: 1. package.json: - Added publishConfig with access: public (required for scoped packages) - Already has correct name: @openclaw/devclaw - Version: 0.1.0 (ready for initial release) - Files array properly configured (dist/, roles/, docs/) - prepublishOnly script ensures build before publish 2. GitHub Actions Workflow (.github/workflows/npm-publish.yml): - Triggers on release publication - Manual workflow dispatch option with tag input - Uses NPM_ACCESS_TOKEN secret for authentication - Includes npm provenance for supply chain security - Publishes as public package - Provides summary output after publication 3. Publishing Documentation (PUBLISHING.md): - Comprehensive guide for all publishing methods - Automated publishing via GitHub releases (recommended) - Manual workflow trigger instructions - Local publishing fallback - Dry-run testing procedures - Version management guidelines - Troubleshooting common issues - Post-publishing checklist Configuration Details: - Package name: @openclaw/devclaw (scoped) - npm account: laurentenhoor - Access: public (free for scoped packages) - Provenance: enabled for transparency - Node.js: >=20 required Ready for Initial Release: To publish the first version: 1. Verify NPM_ACCESS_TOKEN is set in GitHub secrets 2. Create and push tag: git tag v0.1.0 && git push --tags 3. Create GitHub release from tag 4. Workflow automatically builds and publishes to npm Addresses issue #130
51 lines
946 B
JSON
51 lines
946 B
JSON
{
|
|
"name": "@openclaw/devclaw",
|
|
"version": "0.1.0",
|
|
"description": "Multi-project dev/qa pipeline orchestration for OpenClaw",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"author": "laurentenhoor",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/laurentenhoor/devclaw.git"
|
|
},
|
|
"keywords": [
|
|
"openclaw",
|
|
"openclaw-plugin",
|
|
"dev-pipeline",
|
|
"orchestration",
|
|
"gitlab",
|
|
"github",
|
|
"multi-project"
|
|
],
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"openclaw": {
|
|
"extensions": [
|
|
"./index.ts"
|
|
]
|
|
},
|
|
"main": "./dist/index.js",
|
|
"files": [
|
|
"dist/",
|
|
"roles/",
|
|
"docs/"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"check": "tsc --noEmit",
|
|
"watch": "tsc --noEmit --watch",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"peerDependencies": {
|
|
"openclaw": ">=2026.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.8"
|
|
}
|
|
}
|