Coder Social home page Coder Social logo

Comments (7)

eunjae-lee avatar eunjae-lee commented on May 24, 2024 1

Oh actually this seems to be fixed in #928
Can you replace

NODE_AUTH_TOKEN: \${{ secrets.NPM_AUTH_TOKEN }}

with

NPM_AUTH_TOKEN: \${{ secrets.NPM_AUTH_TOKEN }}

in your workflow file?

@vinayakkulkarni @KnisterPeter

Please let me know if it fixes your issue.

from shipjs.

KnisterPeter avatar KnisterPeter commented on May 24, 2024 1

@eunjae-lee Thanks, I'll report back when I do the next release.

from shipjs.

vinayakkulkarni avatar vinayakkulkarni commented on May 24, 2024 1

Oh FYI, if anyone is facing an issue while publishing to GPR, here's a sample Shipjs trigger .yml:

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 npm publish
Ref: actions/setup-node#52 (comment)

from shipjs.

eunjae-lee avatar eunjae-lee commented on May 24, 2024

Thanks @vinayakkulkarni for reporting the issue.

Hey @jeetiss if I remember correctly, you have dealt with an issue regarding NPM_AUTH_TOKEN before, right?
This bug is coming from my recent change. Do you have any idea what is wrong here?
If not, let me know. I will keep investigating the issue.

from shipjs.

KnisterPeter avatar KnisterPeter commented on May 24, 2024

Happened for me as well. I would say, the first issue here is, that the release is marked as success but the process failed.
The release trigger should defnitly fail.

from shipjs.

KnisterPeter avatar KnisterPeter commented on May 24, 2024

Works fine. You close this one. 🎉

from shipjs.

eunjae-lee avatar eunjae-lee commented on May 24, 2024

@KnisterPeter thanks for the confirmation 👍

@vinayakkulkarni this will fix your issue!

from shipjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.