Skip to content

Commit ebbbcc5

Browse files
authored
fix: Allow installing direct from git repository (#184)
1 parent f3e5c35 commit ebbbcc5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
echo "Publishing experimental"
8282
echo "tag=experimental" >> $GITHUB_OUTPUT
8383
fi
84-
84+
8585
HASH=$(git rev-parse --short HEAD)
8686
TIMESTAMP=$(date +"%Y%m%d-%H%M%S")
8787
PRERELEASE_TAG=nightly-$(echo "${{ github.ref_name }}" | sed -r 's/[^a-z0-9]+/-/gi')
@@ -172,8 +172,11 @@ 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 }}
177180
178181
NEW_VERSION=$(node -p "require('./package.json').version")
179182
echo "**Published:** $NEW_VERSION" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)