-
Notifications
You must be signed in to change notification settings - Fork 1.4k
No token found and can't prompt for login when running with --non-interactive for gpr-publish #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same error. Did you make it work @AjayPoshak? |
@baptisteArno nope. |
I had the same issue and adding - name: Set node version
uses: actions/setup-node@v1
with:
always-auth: true
node-version: 12.14.0
registry-url: 'https://npm.pkg.github.com' |
Still not working the same error... Here is my complete workflow: on:
push:
tags:
- 'v*.*.*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn
- run: yarn test
publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-gpr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
always-auth: true
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
I'm seeing the same problem with |
I got it working for me. I had not set the |
Hello everyone. Thank you for all your response. I could reproduce the issue. I think the issue is more relevant to yarn itself. I found some similar issues: |
@Untanky 's solution worked for me, thanks! |
Hello everyone. Thank you for your responses. For now I'm going to close the issue, because the root cause of the issue does not come from the setup-node action. If you have any concerns feel free to ping us. |
* docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
When I run yarn publish in github action for GPR, I get following error
Meanwhile it works fine for NPM publish flow.
My workflow configuration: https://github.com/AjayPoshak/instagram-story/blob/master/.github/workflows/npmpublish.yml
The text was updated successfully, but these errors were encountered: