Skip to content

Commit d910da9

Browse files
committed
ci: use tokens on PyPI
1 parent b1a758e commit d910da9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/python.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ jobs:
144144
@semantic-release/exec
145145
env:
146146
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
148147
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
149148
PYPI_TEST_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }}
150149
- name: New release published

ci-prepare-cmd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ poetry config --list
2828

2929
# Hide the password
3030
set +x
31-
poetry publish --repository testpypi --username "$PYPI_USERNAME" --password "$PYPI_TEST_PASSWORD"
31+
poetry publish --repository testpypi --username __token__ --password "$PYPI_TEST_PASSWORD"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@semantic-release/exec",
2020
{
2121
"prepareCmd": "bash ./ci-prepare-cmd.sh ${nextRelease.version}",
22-
"publishCmd": "poetry build && poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD"
22+
"publishCmd": "poetry build && poetry publish --username __token__ --password $PYPI_PASSWORD"
2323
}
2424
],
2525
"@semantic-release/github",

0 commit comments

Comments
 (0)