# Configure npm Trusted Publishing for this caller filename and the npm environment. name: Release / DSH plugin run-name: Publish ReMe DSH plugin ${{ inputs.version }} (${{ inputs.npm_tag }}) on: workflow_dispatch: inputs: version: description: Exact package.json version; an optional v prefix is accepted required: true type: string npm_tag: description: npm distribution tag required: true default: latest type: choice options: - next - latest use_npm_token: description: Use the npm environment NPM_TOKEN instead of Trusted Publishing required: true default: false type: boolean permissions: contents: read concurrency: group: publish-reme-dsh-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/dsh package_name: '@agentscope-ai/reme-dsh-plugin' artifact_name: agentscope-ai-reme-dsh-plugin version: ${{ inputs.version }} npm_tag: ${{ inputs.npm_tag }} use_npm_token: ${{ inputs.use_npm_token }}