Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
spookyuser committed Jan 2, 2025
1 parent 55af06d commit 67060bb
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,4 @@ jobs:
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Publish package
run: |
if ! command -v bunx &> /dev/null; then
echo "bunx could not be found. Installing npm globally as a fallback."
curl -fsSL https://bun.sh/install | bash
export PATH="$HOME/.bun/bin:$PATH"
bunx --bun install -g npm
fi
if bunx --bun --trust pnpm publish; then
echo "Published using bunx pnpm."
elif pnpm publish; then
echo "Published using globally installed pnpm."
else
echo "Publish failed."
exit 1
fi
run: npm publish

0 comments on commit 67060bb

Please sign in to comment.