Skip to content

Publishing with npx jsr seems to be no longer working? #1200

@fry69

Description

@fry69

There seem to be problems with publishing packages currently when using the recommended npx jsr publish GitHub workflow that gets shown in the documentation and when setting up a new project to publish.

Yesterday I encountered these two errors when trying to publish via GitHub actions:

error: Failed to get OIDC token: status 503 Service Unavailable, response: 'upstream connect error or disconnect/reset before headers. reset reason: overflow'
Command: /home/runner/.npm/_npx/91d31d47806d2506/node_modules/jsr/.download/v2.3.7/linux/deno publish
CWD: /home/runner/work/or-models/or-models
Output: 
Child process exited with: 1
error: Failed to publish @fry69/deep-diff@0.1.4

Caused by:
    expected value at line 1 column 1
Command: /home/runner/.npm/_npx/91d31d47806d2506/node_modules/jsr/.download/v2.3.7/linux/deno publish
CWD: /home/runner/work/deep-diff/deep-diff
Output: 
Child process exited with: 1

Using deno publish instead works fine:

name: Publish JSR
on:
  push:
    branches:
      - main

jobs:
  publish:
    runs-on: ubuntu-latest

    permissions:
      contents: read
      id-token: write

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Setup Deno
        uses: denoland/setup-deno@v2
        with:
          cache: true

      - name: Publish package
        run: deno publish

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