Skip to content

Commit d5a1dfc

Browse files
committed
feat: Don't run build script on publish
It's already been run before. We do still need to run pinst, so we do that manually.
1 parent db0ed8c commit d5a1dfc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,14 @@ jobs:
172172
corepack enable
173173
yarn install
174174
175+
# Disable postinstall in published release
176+
yarn pinst --disable
177+
175178
# Publish from the extracted release (build output present)
176-
npm publish --access=public --provenance --tag ${{ needs.prepare.outputs.tag }}
179+
npm publish --ignore-scripts --access=public --provenance --tag ${{ needs.prepare.outputs.tag }}
180+
181+
# Re-enable postinstall after publishing
182+
yarn pinst --enable
177183
178184
NEW_VERSION=$(node -p "require('./package.json').version")
179185
echo "**Published:** $NEW_VERSION" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)