Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
required: false
BUILD_GH_TOKEN:
description: "GitHub Token. Used to authenticate with GitHub at build step. This will overwrite the use of the default GitHub token."
required: false
PYPI_TOKEN:
description: "PyPI Token. Used to authenticate with PyPI at release step if present."
required: false
outputs:
version:
description: "The version of the release. Will be empty if no release was made."
Expand Down Expand Up @@ -139,6 +143,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GH_TOKEN || secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.RELEASE_GH_TOKEN || secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN || '' }}
run: |
npx semantic-release 2>&1 | tee semantic-release.log
status=${PIPESTATUS[0]}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ When the workflow runs on a push to `develop`, it will fail if `main` is ahead o

- `RELEASE_GH_TOKEN`: GitHub Token. Used to authenticate with GitHub at release step. This will overwrite the use of the default GitHub token.
- `BUILD_GH_TOKEN`: GitHub Token. Used to authenticate with GitHub at build step. This will overwrite the use of the default GitHub token.
- `PYPI_TOKEN`: PyPI Token. Used to authenticate with PyPI at release step if present.

#### Outputs

Expand Down