Skip to content

Commit b04ef19

Browse files
committed
ci: use v21-lts dist-tag and allow publish-only release retries
1 parent cc4e6c8 commit b04ef19

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: Dry run (preview only, no push/publish)
1616
type: boolean
1717
default: true
18+
publish-only:
19+
description: Skip versioning and publish the version already committed (retry a failed publish)
20+
type: boolean
21+
default: false
1822

1923
concurrency:
2024
group: nx-release-${{ github.ref }}
@@ -54,6 +58,7 @@ jobs:
5458
# Publishing is intentionally split out (--skip-publish) so the OIDC
5559
# token-clearing logic below wraps only the publish step.
5660
- name: nx release version + changelog
61+
if: ${{ !inputs.publish-only }}
5762
run: >
5863
npx nx release ${{ inputs.version }}
5964
--groups=${{ inputs.project }}
@@ -82,7 +87,7 @@ jobs:
8287
tag="next"
8388
fi
8489
else
85-
tag="v21"
90+
tag="v21-lts"
8691
fi
8792
echo "Resolved version ${version} -> dist-tag ${tag}"
8893
echo "tag=${tag}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)