Skip to content

Commit f795a47

Browse files
chore(ci): escape input path in publish-npm workflow
1 parent e90f399 commit f795a47

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ jobs:
3737
3838
- name: Publish to NPM
3939
run: |
40-
if [ -n "${{ github.event.inputs.path }}" ]; then
41-
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
40+
if [ -n "$INPUT_PATH" ]; then
41+
PATHS_RELEASED="[\"$INPUT_PATH\"]"
4242
else
4343
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
4444
fi
4545
pnpm tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
46+
env:
47+
INPUT_PATH: ${{ github.event.inputs.path }}
4648

4749
- name: Upload MCP Server DXT GitHub release asset
4850
run: |

0 commit comments

Comments
 (0)