Skip to content

Commit 84cda41

Browse files
chore(ci): escape input path in publish-npm workflow
1 parent c99b140 commit 84cda41

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-npm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ jobs:
3434
3535
- name: Publish to NPM
3636
run: |
37-
if [ -n "${{ github.event.inputs.path }}" ]; then
38-
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
37+
if [ -n "$INPUT_PATH" ]; then
38+
PATHS_RELEASED="[\"$INPUT_PATH\"]"
3939
else
4040
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
4141
fi
4242
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
43+
env:
44+
INPUT_PATH: ${{ github.event.inputs.path }}
4345

4446
- name: Upload MCP Server DXT GitHub release asset
4547
run: |

0 commit comments

Comments
 (0)