feat: set package owner

This commit is contained in:
Leandro Costa 2025-06-27 13:11:11 -03:00
parent 0ff0250ca6
commit 6640f4aaf2
2 changed files with 6 additions and 6 deletions

View file

@ -8,10 +8,10 @@ inputs:
git_token:
description: Token to publish packages
required: true
git_username:
package_owner:
description: user name that will hold the packages
required: false
default: leandro
default: Altsoft
git_url:
description: Git/Gitea/Forgejo server
required: false
@ -77,9 +77,9 @@ runs:
shell: sh
run: |
echo "Git url: ${{ inputs.git_url }}"
echo "Git Username: ${{ inputs.git_username }}"
npm config set registry https://${{ inputs.git_url }}/api/packages/${{ inputs.git_username }}/npm/
npm config set -- '//${{ inputs.git_url }}/api/packages/${{ inputs.git_username }}/npm/:_authToken' "${{ inputs.git_token }}"
echo "Package Owner: ${{ inputs.package_owner }}"
npm config set registry https://${{ inputs.git_url }}/api/packages/${{ inputs.package_owner }}/npm/
npm config set -- '//${{ inputs.git_url }}/api/packages/${{ inputs.package_owner }}/npm/:_authToken' "${{ inputs.git_token }}"
cd dist
if npm view "${PACKAGE_NAME}@${PACKAGE_VERSION}" > /dev/null 2>&1; then

View file

@ -1,3 +1,3 @@
{
"cSpell.words": ["dbupdater", "lhprovedor", "npmjs", "webfactory"]
"cSpell.words": ["Altsoft", "dbupdater", "lhprovedor", "npmjs", "webfactory"]
}