-
-
Notifications
You must be signed in to change notification settings - Fork 543
npm requires npm login
in github actions
#1042
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
What do you see? What did you try? Are the tokens available as environment variables for release-it to pick them up? |
FWIW I've been manually running
@phun-ky I'm under the impression GitHub Actions require explicitly passing environment variables to actions. Example: - name: "Release" # Interesting step
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} Just confirming, have you tried that? (or am I wrong?) |
I am currently facing this issue with - name: Release with release-it
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
npm run release-it-$RELEASE_LEVEL
env:
RELEASE_LEVEL: ${{ github.event.inputs.version_inc }}
GITHUB_TOKEN: ${{ secrets.GTIHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GTIHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GTIHUB_TOKEN }} I get
Also note that I am trying to publish on the registry github packages. |
Did you auth against https://npm.pkg.github.com/? Didn't use this myself, but here's two things you could try:
|
Dummy but it is a typo Thanks for your quick support and response though! |
This is fixed on my end now. Thanks! |
I have set
NPM_TOKEN
in action secrets, and I have this setup:publish.yml:
.npmrc:
*.release-it.json:
What could be the issue here?
The text was updated successfully, but these errors were encountered: