Closed
Description
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.