Skip to content

Pressing the clipboard icon to copy GitHub Workflow YAML puts undefined in clipboard #1214

@brettchalupa

Description

@brettchalupa

Repro Steps

  1. Create a new package
  2. On the /publish page of your package, click the copy icon where the YAML is shown

Expected: Clipboard to contain:

name: Publish
on:
  push:
    branches:
      - main

jobs:
  publish:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v4
      - name: Publish package
        run: npx jsr publish

Actual: Clipboard contains undefined

Screenshot of the area:

Image

It happens for both the publish.yml path and the actual yaml code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions