GithubHelp home page GithubHelp logo

Comments (3)

juanpicado avatar juanpicado commented on May 23, 2024

You can try this pnpm/pnpm#3141 (comment)

I copy here the solution adapted

      - name: Set token config
        run: |
          echo "//npm.pkg.github.com/:_authToken=${secrets.NPM_TOKEN}" > .npmrc
          echo "@yourScope=https://npm.pkg.github.com/" >> .npmrc
          echo "_auth=${secrets.NPM_TOKEN}" >> .npmrc
          echo "always-auth=true" >> .npmrc
        env:
          secrets.NPM_TOKEN: ${{secrets.NPM_TOKEN}}
      - name: Install
        run: pnpm install

Keep on mind that pnpm is able to read from .npmrc so this should works fine. If you have troubles you can always increase the logging to see more in detail what is returning the registry.

from action-setup.

jamesarosen avatar jamesarosen commented on May 23, 2024

@juanpicado that looks like what you'd use to access a private NPM package, not a private GitHub repo.

from action-setup.

KSXGitHub avatar KSXGitHub commented on May 23, 2024

Apologize for late response.

Does this work? https://pnpm.io/npmrc#url_authtoken

from action-setup.

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.