Skip to content

Commit bb90d39

Browse files
chore(ci): escape input path in publish-npm workflow
1 parent 118d95d commit bb90d39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ jobs:
3333
3434
- name: Publish to NPM
3535
run: |
36-
if [ -n "${{ github.event.inputs.path }}" ]; then
37-
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
36+
if [ -n "$INPUT_PATH" ]; then
37+
PATHS_RELEASED="[\"$INPUT_PATH\"]"
3838
else
3939
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
4040
fi
4141
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
4242
env:
43+
INPUT_PATH: ${{ github.event.inputs.path }}
4344
NPM_TOKEN: ${{ secrets.CONTEXT_DEV_NPM_TOKEN || secrets.NPM_TOKEN }}
4445

4546
- name: Upload MCP Server DXT GitHub release asset

0 commit comments

Comments
 (0)