From 0480832df97cc941b491072dc3f9cc3c8c831a6c Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Sun, 28 Apr 2024 03:45:29 +0000 Subject: [PATCH] Update npm/publish/action.yaml --- npm/publish/action.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/npm/publish/action.yaml b/npm/publish/action.yaml index c72174e..7856559 100644 --- a/npm/publish/action.yaml +++ b/npm/publish/action.yaml @@ -22,6 +22,11 @@ inputs: required: false description: Only publish for branch default: develop + working-directory: + type: string + requried: false + description: Run from path + default: . runs: using: composite @@ -30,4 +35,4 @@ runs: if: ${{github.ref_name}} == ${{inputs.branch}} uses: docker://node with: - args: /bin/bash -c 'npm set registry ${{inputs.registry}} && npm set $(echo ${{inputs.registry}} | sed s%http:%% | sed s%https:%% ):_authToken "${{inputs.token}}" && npm publish || echo Already published...' + args: /bin/bash -c 'cd ${{inputs.working-directory}} && npm set registry ${{inputs.registry}} && npm set $(echo ${{inputs.registry}} | sed s%http:%% | sed s%https:%% ):_authToken "${{inputs.token}}" && npm publish || echo Already published...'