From 4f01214249dba735499f778074e90863d4b764e0 Mon Sep 17 00:00:00 2001 From: Luke Bunselmeyer Date: Fri, 26 Sep 2025 15:40:49 -0400 Subject: [PATCH] Added dryRun to release.yml --- .github/workflows/release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2654ad..b7c4e40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,9 +44,15 @@ jobs: - name: Test run: npm test - + - name: Version (dry-run) + if: ${{ inputs.dryRun }} + run: npm version --no-git-tag-version "${{ inputs.version }}" - name: Version - run: npm version ${{ inputs.version }} - + if: ${{ ! inputs.dryRun }} + run: npm version "${{ inputs.version }}" + - name: Publish (dry-run) + if: ${{ inputs.dryRun }} + run: npm publish --provenance --access public --dry-run - name: Publish + if: ${{ ! inputs.dryRun }} run: npm publish --provenance --access public