Skip to content

Publish to github repository fails.... #942

Closed
@ildella

Description

@ildella

Description:

This workflow fails for authentication issues:

  publish-gpr:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    steps:
    - uses: actions/checkout@v4
    - run: corepack enable
    - uses: actions/setup-node@v4
      with:
        node-version: 20
        cache: 'yarn'
        registry-url: https://npm.pkg.github.com/
    - run: yarn workspaces focus --all --production
    - run: yarn npm publish
      env:
        NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

Action version:

v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • [ x] Hosted
  • Self-hosted

Tools version:

yarn v4

Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.

Expected behavior:

It should work out of the box.

Actual behavior:

It fails with this error:

➤ YN0033: No authentication configured for request
➤ YN0000: Failed with errors in 0s 162ms
Error: Process completed with exit code 1.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions