Update npm/publish/action.yaml
This commit is contained in:
parent
af561ad3e6
commit
1edce06f56
@ -32,6 +32,7 @@ runs:
|
|||||||
TRIMMED=$(echo "${{inputs.registry}}" | sed s%http:%% | sed s%https:%%)
|
TRIMMED=$(echo "${{inputs.registry}}" | sed s%http:%% | sed s%https:%%)
|
||||||
echo "_authToken=${{inputs.token}}" > .npmrc
|
echo "_authToken=${{inputs.token}}" > .npmrc
|
||||||
echo "registry=${{inputs.registry}}" >> .npmrc
|
echo "registry=${{inputs.registry}}" >> .npmrc
|
||||||
|
npm publish
|
||||||
fi
|
fi
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|
||||||
@ -39,4 +40,4 @@ runs:
|
|||||||
if: ${{github.ref_name}} == ${{inputs.branch}}
|
if: ${{github.ref_name}} == ${{inputs.branch}}
|
||||||
uses: docker://node
|
uses: docker://node
|
||||||
with:
|
with:
|
||||||
args: /bin/bash -c "npm publish"
|
args: /bin/bash -c 'echo "_authToken=${{inputs.token}}" > .npmrc && echo "registry=${{inputs.registry}}" >> .npmrc && npm publish'
|
||||||
|
Loading…
Reference in New Issue
Block a user