Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,31 @@ jobs:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"

- name: Stage filtered skills for npm package
env:
SKILLS_REPO: https://github.com/flora131/atomic.git
run: |
set -euo pipefail

# Replace the dev-laden checkout skills with the filtered set
# produced by `bunx skills add` (which excludes development-only
# skills). Install globally on the runner, then copy into the
# package root so npm pack picks them up.
rm -rf .agents/skills
bunx skills add "$SKILLS_REPO" \
--skill "*" \
-a opencode -a github-copilot \
-g -y

mkdir -p .agents/skills
cp -R "$HOME/.agents/skills/." .agents/skills/

# Whitelist the staged directory for `npm publish` without
# baking the entry into the committed package.json.
tmp=$(mktemp)
jq '.files += [".agents/skills"]' package.json > "$tmp"
mv "$tmp" package.json

- name: Publish to npm
run: npm publish --provenance --access public --tag ${{ steps.npm-tag.outputs.tag }}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"src",
"dist",
"assets/settings.schema.json",
".agents/skills",
".claude/agents",
".claude/settings.json",
".opencode/agents",
Expand Down
Loading