Skip to content

Commit 09b07c5

Browse files
fix(ci): use npm pkg delete instead of set to empty string
npm pkg set scripts.prepublishOnly="" fails on newer npm versions because the empty value is not recognized as a valid key=value pair. Use npm pkg delete to remove the key entirely instead.
1 parent 168a056 commit 09b07c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
echo "Publishing version $VERSION"
159159
160160
- name: Disable prepublishOnly
161-
run: npm pkg set scripts.prepublishOnly=""
161+
run: npm pkg delete scripts.prepublishOnly
162162

163163
- name: Download native artifacts
164164
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)