From 8010f88b94f3f2044e574ddfbab2f2eed9280349 Mon Sep 17 00:00:00 2001 From: Scion Date: Thu, 1 Jan 2026 19:01:22 -0800 Subject: [PATCH] Fixed path. --- npm/npm-push/action.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/npm/npm-push/action.yaml b/npm/npm-push/action.yaml index c8ac0ae..5e6e8b0 100644 --- a/npm/npm-push/action.yaml +++ b/npm/npm-push/action.yaml @@ -31,7 +31,12 @@ runs: env: NODE_AUTH_TOKEN: ${{ inputs.apiKey }} run: | - echo "Publishing ${{ inputs.tgz }} to ${{ inputs.registry }}" - npm publish ${{ inputs.tgz }} --registry ${{ inputs.registry }} --access ${{ inputs.access }} + # Ensure path starts with ./ so npm recognizes it as a file path + TGZ_PATH="${{ inputs.tgz }}" + if [[ ! "$TGZ_PATH" =~ ^[./~] ]]; then + TGZ_PATH="./$TGZ_PATH" + fi + echo "Publishing $TGZ_PATH to ${{ inputs.registry }}" + npm publish "$TGZ_PATH" --registry ${{ inputs.registry }} --access ${{ inputs.access }} echo "Package published successfully" shell: bash