GithubHelp home page GithubHelp logo

daunchung / npm-gpr-auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aquacash5/npm-gpr-auth

0.0 0.0 0.0 7.34 MB

Authenticate npm for consuming and publishing packages from and to the GitHub Package Registry

License: MIT License

JavaScript 100.00%

npm-gpr-auth's Introduction

npm-gpr-auth

Authenticate npm for consuming and publishing packages from and to the GitHub Package Registry on Linux, Windows, and macOS.

Usage

Make sure your project's local .npmrc and package.json is set up with the right repository scope and URL. Take a look at the docs or jgierer12's step-by-step guide on how to do this.

steps:
  - uses: actions/checkout@v1
  - uses: actions/setup-node@v1
    with:
      node-version: ${{ matrix.node-version }}
  - uses: aquacash5/npm-gpr-auth@v2
    with:
      token: ${{ secrets.GITHUB_TOKEN }}
  - run: npm install
  - run: npm publish

secrets.GITHUB_TOKEN is included in every GitHub Action's virtual environment by default. You should be able to use it without any further setup. Of course, you can also use a different token instead. This is useful if, for example, you want to publish a repo different from the current one.

License

MIT © 2019 Jonas Gierer
MIT © 2020 Kyle Bloom

npm-gpr-auth's People

Contributors

aquacash5 avatar jgierer12 avatar

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.