Skip to content
Merged
Changes from 1 commit
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
13 changes: 13 additions & 0 deletions .github/workflows/tag-release-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ on:
description: "An repository for the extra artifact"
required: false
type: string
pypi_publish:
description: "Whether to publish to PyPI"
required: false
type: boolean
default: false
outputs:
version_tag:
value: ${{ jobs.tag_release.outputs.version_tag }}
Expand All @@ -58,6 +63,10 @@ on:
NPM_TOKEN:
required: false
description: "NPM token to publish packages"

PYPI_TOKEN:
required: false
description: "PyPI token to publish packages"
jobs:
tag_release:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -191,6 +200,8 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
MAIN_BRANCH: ${{ inputs.main_branch }}
EXTRA_ASSET: ${{ inputs.extra_artifact_name }}
PYPI_PUBLISH: ${{ inputs.pypi_publish }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Comment thread
anthony-nhs marked this conversation as resolved.

- name: Create semantic release tag
if: ${{ !inputs.dry_run }}
Expand All @@ -201,6 +212,8 @@ jobs:
TAG_FORMAT: ${{ inputs.tag_format }}
MAIN_BRANCH: ${{ inputs.main_branch }}
EXTRA_ASSET: ${{ inputs.extra_artifact_name }}
PYPI_PUBLISH: ${{ inputs.pypi_publish }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Comment thread
anthony-nhs marked this conversation as resolved.
run: |
npx semantic-release --tag-format "${TAG_FORMAT}"

Expand Down
Loading