ReMe/.github/workflows/release-openclaw-plugin.yml
jinliyl 638c81e88e
Some checks failed
CI / Python tests / Unit Tests - py3.14 (push) Has been cancelled
CI / Windows / CLI smoke - py3.11 (push) Has been cancelled
Security / CodeQL / Analyze python (push) Has been cancelled
CI / ReMe Studio / Studio checks (push) Has been cancelled
Security / CodeQL / Analyze javascript-typescript (push) Has been cancelled
CI / Python quality / Pre-commit (push) Has been cancelled
CI / DSH plugin / Validate DSH plugin (push) Has been cancelled
CI / OpenClaw plugin / Validate OpenClaw plugin (push) Has been cancelled
CI / Python packages / Build and verify distributions (push) Has been cancelled
CI / Python quality / GitHub Actions (push) Has been cancelled
CI / Python tests / Unit Tests - py3.11 (push) Has been cancelled
CI / Python tests / Unit Tests - py3.12 (push) Has been cancelled
CI / Python tests / Unit Tests - py3.13 (push) Has been cancelled
CI and Release / Docker / Build and test / amd64 (push) Has been cancelled
CI and Release / Docker / Build and test / arm64 (push) Has been cancelled
CI and Release / Docker / Publish multi-platform tags (push) Has been cancelled
chore: release 0.4.2.0 and simplify publishing workflows (#631)
* chore: release 0.4.2.0 and derive publish versions from source

* chore(dsh): prepare 0.1.3 for the next iteration
2026-10-16 16:53:52 +08:00

61 lines
1.8 KiB
YAML

# Configure npm Trusted Publishing for this caller filename and the npm environment.
name: Release / OpenClaw plugin
run-name: Publish ReMe OpenClaw plugin from ${{ github.ref_name }}
on:
workflow_dispatch:
inputs:
use_npm_token:
description: Use the npm environment NPM_TOKEN instead of Trusted Publishing
required: true
default: false
type: boolean
publish_clawhub:
description: Also publish the package to ClawHub
required: true
default: false
type: boolean
permissions:
contents: read
concurrency:
group: publish-reme-openclaw-plugin
cancel-in-progress: false
jobs:
release:
if: github.ref == 'refs/heads/main'
permissions:
contents: read
id-token: write
uses: ./.github/workflows/_release-npm-plugin.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
directory: integrations/openclaw
package_name: '@agentscope-ai/reme-openclaw-plugin'
artifact_name: agentscope-ai-reme-openclaw-plugin
use_npm_token: ${{ inputs.use_npm_token }}
validate_clawhub: true
publish-clawhub:
if: ${{ inputs.publish_clawhub && github.ref == 'refs/heads/main' }}
needs: release
permissions:
actions: read
contents: read
id-token: write
uses: openclaw/clawhub/.github/workflows/package-publish.yml@cacf5ec1b0ee3cb532ab4555a68c1db9e0c1aac7 # v0.24.0
with:
family: code-plugin
version: ${{ needs.release.outputs.version }}
tags: ${{ needs.release.outputs.npm_tag }}
source_repo: ${{ github.repository }}
source_commit: ${{ github.sha }}
source_ref: ${{ github.sha }}
source_path: integrations/openclaw
package_artifact_name: agentscope-ai-reme-openclaw-plugin-${{ needs.release.outputs.version }}
dry_run: false
wait_for_publication: true