Skip to content

Commit 2580b3f

Browse files
jeromechooclaude
andcommitted
Fix release publish: skip prepublishOnly on the prebuilt artifact
pnpm publish ran the prepublishOnly build in the artifact directory, which has no node_modules, so tsup was not found. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent f71ee0e commit 2580b3f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ jobs:
9999
working-directory: package
100100
env:
101101
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
102-
run: pnpm publish --access public --no-git-checks --provenance
102+
# The artifact is already built; --ignore-scripts skips prepublishOnly,
103+
# which would re-run tsup in a directory with no node_modules.
104+
run: pnpm publish --access public --no-git-checks --provenance --ignore-scripts
103105

104106
- name: Publish GitHub Release
105107
env:

0 commit comments

Comments
 (0)