skip nil values

This commit is contained in:
Dax Raad 2025-06-12 13:13:27 -04:00
parent 662b6b1258
commit 2fa50190e5
2 changed files with 8 additions and 0 deletions

View file

@ -32,6 +32,11 @@ jobs:
with:
bun-version: 1.2.16
- name: Test npm auth
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
bun install
./script/publish.ts

View file

@ -484,6 +484,9 @@ func renderArgs(args *map[string]any, titleKey string) string {
title := ""
parts := []string{}
for key, value := range *args {
if value == nil {
continue
}
if key == "filePath" || key == "path" {
value = relative(value.(string))
}