-
Notifications
You must be signed in to change notification settings - Fork 29
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
failure in setting npm config in shipjs trigger #931
Comments
Thanks @vinayakkulkarni for reporting the issue. Hey @jeetiss if I remember correctly, you have dealt with an issue regarding NPM_AUTH_TOKEN before, right? |
Happened for me as well. I would say, the first issue here is, that the release is marked as success but the process failed. |
Oh actually this seems to be fixed in #928
with
in your workflow file? @vinayakkulkarni @KnisterPeter Please let me know if it fixes your issue. |
@eunjae-lee Thanks, I'll report back when I do the next release. |
Works fine. You close this one. 🎉 |
@KnisterPeter thanks for the confirmation 👍 @vinayakkulkarni this will fix your issue! |
Oh FYI, if anyone is facing an issue while publishing to GPR, here's a sample Shipjs trigger name: Ship js trigger
on:
pull_request:
types:
- closed
jobs:
build:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
steps:
- name: Checkout code 🛎
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: main
- name: Setup node env 🏗
uses: actions/[email protected]
with:
node-version: 14
registry-url: 'https://npm.pkg.github.com'
scope: '<@scope>'
- name: Install dependencies 👨🏻💻
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release pkg to registry ⚡️
run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }} Apparently, NODE_AUTH_TOKEN is required for |
Describe the bug
npx shipjs trigger
doesn't workTo Reproduce
Steps to reproduce the behavior:
Check the workflow details, you'll see
Expected behavior
Ideally, ship.js trigger should publish the pkg to registry, but it doesn't automatically publish to the registry.
Screenshots

Environment (please complete the following information):
node -v
: 10.22.1npm -v
oryarn -v
: 6.14.6Additional context
NA
The text was updated successfully, but these errors were encountered: