From 99dfdab1942e8b52c4eec3a18c901ebcb28e5c55 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Mon, 16 Mar 2026 06:14:29 -0700 Subject: [PATCH] Fix the description of npm-tag --- .github/workflows/releases.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index df2314cf..e9beb5ba 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -1,6 +1,6 @@ name: Publish NPM -run-name: Publish NPM - ${{ inputs.package }}@${{ inputs.npm-tag }} from ${{ inputs.branch }} +run-name: Publish NPM - ${{ inputs.package }} from ${{ inputs.branch }} on: workflow_dispatch: @@ -29,7 +29,7 @@ on: type: string required: false default: 'latest' - description: 'npm dist-tag to publish under (e.g. latest, next, beta)' + description: 'npm dist-tag for the release. Use "latest" for main branch releases. For non-main branches, use the package major version (e.g. "v5") to avoid overwriting the latest tag.' jobs: test: @@ -93,7 +93,7 @@ jobs: - name: guard against publishing latest from non-main branch if: inputs.branch != 'main' && inputs.npm-tag == 'latest' run: | - echo "::error::Publishing with the 'latest' dist-tag from a non-main branch ('${{ inputs.branch }}') is not allowed. Use a different npm-tag (e.g. next, beta)." + echo "::error::Publishing with the 'latest' dist-tag from a non-main branch ('${{ inputs.branch }}') is not allowed. Use the package major version as the tag (e.g. v5)." exit 1 - name: publish