Skip to content

Commit b49bc51

Browse files
committed
ci(publish): add publish workflow + top-level requires block
- Add .github/workflows/publish.yml with npm publish + softprops action-gh-release on tag push (mirrors skill repo template). - Add top-level requires.config=[apiKey] to openclaw.plugin.json so ClawHub registry summary parser stops flagging Suspicious when the configSchema already carries anyOf + primaryCredential. Closes Xquik-dev/xquik#2093 (parts B, C)
1 parent 3e86df5 commit b49bc51

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
registry-url: "https://registry.npmjs.org"
23+
- run: npm publish --access public
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- name: Create GitHub Release
27+
uses: softprops/action-gh-release@v2
28+
with:
29+
generate_release_notes: true
30+
tag_name: ${{ github.ref_name }}

openclaw.plugin.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"description": "Post tweets, reply, like, retweet, follow, DM from your chat - full X/Twitter automation powered by Xquik. 111 endpoints, reads from $0.00015/call.",
66
"primaryCredential": "apiKey",
77
"alternateCredentials": ["tempoSigningKey"],
8+
"requires": {
9+
"config": ["apiKey"]
10+
},
811
"configSchema": {
912
"type": "object",
1013
"additionalProperties": false,

0 commit comments

Comments
 (0)