Update npm/publish/action.yaml

This commit is contained in:
Zakary Timson 2023-12-15 03:23:41 +00:00
parent 7141bd54a6
commit e711b8bbac

View File

@ -23,8 +23,10 @@ runs:
steps: steps:
- name: Setup registry - name: Setup registry
run: | run: |
if [ "${{github.ref_name}}" == "develop" ] then;
echo "_authToken=${{inputs.token}}" > .npmrc echo "_authToken=${{inputs.token}}" > .npmrc
echo "registry=${{inputs.registry}}/api/packages/${{inputs.owner}}/npm/" >> .npmrc echo "registry=${{inputs.registry}}/api/packages/${{inputs.owner}}/npm/" >> .npmrc
fi
shell: sh shell: sh
- name: Publish - name: Publish