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
1 change: 0 additions & 1 deletion .github/workflows/publish_typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ defaults:
jobs:
publish-typescript:
name: Publish (npmjs.com)
if: ${{ github.event_name == 'workflow_call' || github.ref_type == 'tag' }}
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
Expand Down
7 changes: 4 additions & 3 deletions tests/scripts/test_publish_typescript_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def test_typescript_publisher_accepts_an_explicit_tag_ref():
assert not _tag_triggers_workflow("v0.3.0-alpha.20260817", tag_patterns)

job = workflow["jobs"]["publish-typescript"]
assert job["if"] == (
"${{ github.event_name == 'workflow_call' || github.ref_type == 'tag' }}"
)
assert "if" not in job

steps = {step["name"]: step for step in job["steps"]}
assert steps["Checkout"]["with"]["ref"] == "${{ inputs.ref || github.ref }}"
Expand All @@ -57,6 +55,9 @@ def test_typescript_publisher_accepts_an_explicit_tag_ref():
assert steps["Prepare release metadata"]["env"]["RELEASE_TAG"] == (
"${{ steps.source.outputs.tag }}"
)
release_metadata = steps["Prepare release metadata"]["run"]
assert '*-alpha*) dist_tag="alpha"' in release_metadata
assert '*-beta*|*-rc*) dist_tag="next"' in release_metadata


def test_nightly_alpha_calls_typescript_publisher_for_created_tag():
Expand Down
Loading