diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index dd48aa7a..c0f05ad0 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -144,7 +144,6 @@ jobs: @semantic-release/exec env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} PYPI_TEST_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }} - name: New release published diff --git a/ci-prepare-cmd.sh b/ci-prepare-cmd.sh index 36b4650d..626fd178 100644 --- a/ci-prepare-cmd.sh +++ b/ci-prepare-cmd.sh @@ -28,4 +28,4 @@ poetry config --list # Hide the password set +x -poetry publish --repository testpypi --username "$PYPI_USERNAME" --password "$PYPI_TEST_PASSWORD" +poetry publish --repository testpypi --username __token__ --password "$PYPI_TEST_PASSWORD" diff --git a/package.json b/package.json index af60c16e..edc9886c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@semantic-release/exec", { "prepareCmd": "bash ./ci-prepare-cmd.sh ${nextRelease.version}", - "publishCmd": "poetry build && poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD" + "publishCmd": "poetry build && poetry publish --username __token__ --password $PYPI_PASSWORD" } ], "@semantic-release/github",