File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 NPM_TOKEN :
7070 required : false
7171 description : " NPM token to publish packages"
72+ PYPI_TOKEN :
73+ required : false
74+ description : " PyPI token to publish packages"
75+ PYPI_TEST_TOKEN :
76+ required : false
77+ description : " Test PyPI token to publish packages to test index"
7278jobs :
7379 install_semantic_release :
7480 # Install asdf
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const mainBranch = process.env.MAIN_BRANCH || "main"
88const pypiPublish = process . env . PYPI_PUBLISH || false
99const pypiTestPublish = process . env . PYPI_TEST_PUBLISH || false
1010const pypiRepoUrl = pypiTestPublish ? "https://test.pypi.org/legacy/" : "https://upload.pypi.org/legacy/"
11+ const pypiToken = pypiTestPublish ? process . env . PYPI_TEST_TOKEN : process . env . PYPI_TOKEN
1112
1213module . exports = {
1314 branches : [
@@ -81,7 +82,8 @@ module.exports = {
8182 "semantic-release-pypi" ,
8283 {
8384 pypiPublish, pypiPublish,
84- repoUrl : pypiRepoUrl
85+ repoUrl : pypiRepoUrl ,
86+ repoToken : pypiToken
8587 }
8688 ] ,
8789 [
You can’t perform that action at this time.
0 commit comments