-
- {`\
-name: Publish
-on:
- push:
- branches:
- - main
-
-jobs:
- publish:
- runs-on: ubuntu-latest
-\n`}
- {` permissions:\n`}
- {` contents: read\n`}
- {` id-token: write\n`}
- {`
- steps:
- - uses: actions/checkout@v4\n\n`}
- {` - name: Publish package\n`}
- {` run: npx jsr publish\n`}
+
+ ]+>/g, '')}
+ title="Copy workflow code"
+ class="absolute top-2 right-2 z-1"
+ />
+
+
From b39f2227156ce3a8443e125def5871ac6b3e9e23 Mon Sep 17 00:00:00 2001
From: EGAMAGZ <46827955+EGAMAGZ@users.noreply.github.com>
Date: Thu, 24 Apr 2025 16:21:16 -0600
Subject: [PATCH 2/7] style: Formatted code
---
frontend/routes/package/publish.tsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/frontend/routes/package/publish.tsx b/frontend/routes/package/publish.tsx
index bb5107aa..3e77681d 100644
--- a/frontend/routes/package/publish.tsx
+++ b/frontend/routes/package/publish.tsx
@@ -274,6 +274,8 @@ function GitHubActions({ pkg, canEdit, user }: {
dangerouslySetInnerHTML={{ __html: WORKFLOW_CODE }}>
+ // deno-lint-ignore react-no-danger
+
From 88ede9d4ded04c812468df892fa261567298bf99 Mon Sep 17 00:00:00 2001 From: EGAMAGZ <46827955+EGAMAGZ@users.noreply.github.com> Date: Thu, 24 Apr 2025 16:23:09 -0600 Subject: [PATCH 3/7] fix: Removed missplaced comment --- frontend/routes/package/publish.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/routes/package/publish.tsx b/frontend/routes/package/publish.tsx index 3e77681d..676c0916 100644 --- a/frontend/routes/package/publish.tsx +++ b/frontend/routes/package/publish.tsx @@ -273,9 +273,6 @@ function GitHubActions({ pkg, canEdit, user }: { // deno-lint-ignore react-no-danger dangerouslySetInnerHTML={{ __html: WORKFLOW_CODE }}> - - // deno-lint-ignore react-no-danger -
From 60d0c2f9e3cc65a0e49eb434ab7fcd7747ec2d31 Mon Sep 17 00:00:00 2001
From: EGAMAGZ <46827955+EGAMAGZ@users.noreply.github.com>
Date: Thu, 24 Apr 2025 16:31:09 -0600
Subject: [PATCH 4/7] fix: Remove unnecessary lint ignore comment in
publish.tsx
---
frontend/routes/package/publish.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/routes/package/publish.tsx b/frontend/routes/package/publish.tsx
index 676c0916..045b78fe 100644
--- a/frontend/routes/package/publish.tsx
+++ b/frontend/routes/package/publish.tsx
@@ -1,4 +1,5 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
+// deno-lint-ignore-file react-no-danger
import { HttpError, RouteConfig } from "fresh";
import type { FullUser, Package } from "../../utils/api_types.ts";
import { define } from "../../util.ts";
@@ -270,8 +271,7 @@ function GitHubActions({ pkg, canEdit, user }: {
class="absolute top-2 right-2 z-1"
/>
+ dangerouslySetInnerHTML={{__html: WORKFLOW_CODE}}>
From 5b1389c9f14f538cc7042c24e54b85b5fc536d27 Mon Sep 17 00:00:00 2001
From: EGAMAGZ <46827955+EGAMAGZ@users.noreply.github.com>
Date: Fri, 25 Apr 2025 11:45:12 -0600
Subject: [PATCH 5/7] refactor: Added bg to the copy button
---
frontend/routes/package/publish.tsx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/frontend/routes/package/publish.tsx b/frontend/routes/package/publish.tsx
index 045b78fe..7b095273 100644
--- a/frontend/routes/package/publish.tsx
+++ b/frontend/routes/package/publish.tsx
@@ -265,11 +265,12 @@ function GitHubActions({ pkg, canEdit, user }: {
/>
-]+>/g, '')} - title="Copy workflow code" - class="absolute top-2 right-2 z-1" - /> + +]+>/g, '')} + title="Copy workflow code" + /> + From c569da7475984002b2086ec45bc096d3d8ae8e9f Mon Sep 17 00:00:00 2001 From: EGAMAGZ <46827955+EGAMAGZ@users.noreply.github.com> Date: Fri, 25 Apr 2025 11:53:53 -0600 Subject: [PATCH 6/7] style: Formatted code --- frontend/routes/package/publish.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/routes/package/publish.tsx b/frontend/routes/package/publish.tsx index 7b095273..60e9ec3e 100644 --- a/frontend/routes/package/publish.tsx +++ b/frontend/routes/package/publish.tsx @@ -266,10 +266,7 @@ function GitHubActions({ pkg, canEdit, user }: {
-]+>/g, '')} - title="Copy workflow code" - /> + ]+>/g, '')} title="Copy workflow code" /> From 2e25c01125972fe7249485e2b3411664bdf6234c Mon Sep 17 00:00:00 2001 From: EGAMAGZ <46827955+EGAMAGZ@users.noreply.github.com> Date: Tue, 29 Apr 2025 14:25:09 -0600 Subject: [PATCH 7/7] Revert "style: Formatted code" This reverts commit c569da7475984002b2086ec45bc096d3d8ae8e9f. --- frontend/routes/package/publish.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/routes/package/publish.tsx b/frontend/routes/package/publish.tsx index 60e9ec3e..7b095273 100644 --- a/frontend/routes/package/publish.tsx +++ b/frontend/routes/package/publish.tsx @@ -266,7 +266,10 @@ function GitHubActions({ pkg, canEdit, user }: {
-]+>/g, '')} title="Copy workflow code" /> + ]+>/g, '')} + title="Copy workflow code" + />