diff --git a/.forgejo/actions/publish-npm-package/action.yaml b/.forgejo/actions/publish-npm-package/action.yaml index 29a47c0..df3133b 100644 --- a/.forgejo/actions/publish-npm-package/action.yaml +++ b/.forgejo/actions/publish-npm-package/action.yaml @@ -76,8 +76,8 @@ runs: - name: Publish to Git Packages shell: sh run: | - npm config set registry https://git.lhprovedor.com.br/api/packages/${{ inputs.git_username }}/npm/ - npm config set -- '//git.lhprovedor.com.br/api/packages/${{ inputs.git_username }}/npm/:_authToken' "${GIT_TOKEN}" + npm config set registry https://git.lhprovedor.com.br/api/packages/$GIT_USERNAME/npm/ + npm config set -- '//git.lhprovedor.com.br/api/packages/$GIT_USERNAME/npm/:_authToken' "${GIT_TOKEN}" cd dist if npm view "${PACKAGE_NAME}@${PACKAGE_VERSION}" > /dev/null 2>&1; then @@ -90,3 +90,4 @@ runs: cd .. env: GIT_TOKEN: ${{ inputs.git_token }} + GIT_USERNAME: ${{ inputs.git_username }}