You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If both GITHUB_TOKEN and GITLAB_TOKEN are defined in the environment, semantic-release will use GITHUB_TOKEN to authenticate, even if the repository is hosted on Gitlab.
This is due to get-git-auth-url that stops on the first available token (using the order defined in lib/get-git-auth-url.js:19).
This is most probably what is causing #1484.
I propose a fix in #1669.
Expected behavior
Semantic release should look for all tokens and use the one that actually works.
Current behavior
If both
GITHUB_TOKEN
andGITLAB_TOKEN
are defined in the environment, semantic-release will useGITHUB_TOKEN
to authenticate, even if the repository is hosted on Gitlab.This is due to
get-git-auth-url
that stops on the first available token (using the order defined inlib/get-git-auth-url.js:19
).This is most probably what is causing #1484.
I propose a fix in #1669.
Expected behavior
Semantic release should look for all tokens and use the one that actually works.
Environment
master
The text was updated successfully, but these errors were encountered: