Skip to content

Commit a7a4923

Browse files
committed
fix: Test testing boolean inputs as native boolean values
1 parent 5523aa8 commit a7a4923

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
if: inputs.pwsh
5353
uses: PSModule/Install-PowerShell@v1
5454

55+
- name: Log Context
56+
shell: pwsh
57+
run: |
58+
Write-Host "GitHub Ref (env. variable): $env:GITHUB_REF"
59+
Write-Host "GitHub Ref (context): {{ github.ref }}"
60+
5561
- name: Install Dependencies
5662
run: npm ci
5763

@@ -62,7 +68,7 @@ jobs:
6268
run: npm run ${{ inputs.test-script }}
6369

6470
- name: Publish to NPM (Dry Run)
65-
if: github.ref == 'refs/heads/main' && inputs.dry-run == 'true'
71+
if: github.ref == 'refs/heads/main' && inputs.dry-run
6672
env:
6773
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6874
run: npm publish --access public --tag ${{ inputs.npm-tag }} --dry-run

0 commit comments

Comments
 (0)