Skip to content

feat: Added button to copy publish.yml #1071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert "style: Formatted code"
This reverts commit c569da7.
  • Loading branch information
EGAMAGZ committed Apr 29, 2025
commit 2e25c01125972fe7249485e2b3411664bdf6234c
5 changes: 4 additions & 1 deletion frontend/routes/package/publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ function GitHubActions({ pkg, canEdit, user }: {
</div>
<pre class="bg-slate-900 text-white rounded-lg rounded-tl-none p-4 mb-2 w-full max-w-full overflow-auto relative">
<div class="bg-white dark:bg-jsr-gray-900 text-white rounded p-0.5 absolute top-2 right-2 z-1 size-8 flex justify-center items-center">
<CopyButton text={WORKFLOW_CODE.replace(/<[^>]+>/g, '')} title="Copy workflow code" />
<CopyButton
text={WORKFLOW_CODE.replace(/<[^>]+>/g, '')}
title="Copy workflow code"
/>
</div>
<code
dangerouslySetInnerHTML={{__html: WORKFLOW_CODE}}>
Expand Down
Loading