Code Monkey home page Code Monkey logo

npm-package-minimal's Introduction

npm-package-minimal

Example of publishing an NPM package to Github Packages via Github Actions.

Features:

How to fork this repo for your own NPM module

  • This is a template, so you can clone the repo by clicking Use this template in Github.
  • Change package.json and update all the @briangershon to your account name and replace npm-package-minimal with the name of your repo. The name field (in package.json) is particularly important since this is needed for publishing your module. Also reset your version to an initial value such as 0.0.1 or 1.0.0.

How to npm install this in your own application

Since this module is not being published to the NPM registry, you need to tell npm how to access the package on Github Package Registry.

# create your own personal github token with `repo` and `read:packages` scopes
# and use it as your password in the next step:
npm login --registry=https://npm.pkg.github.com --scope=@briangershon
npm install @briangershon/npm-package-minimal

To release new version of this package

Commit your changes in a branch. Create PR.

Merge your PR to main.

git pull locally.

Update version, tag it and push to Github via:

npm version patch -s -m "my release"
# `postversion` hook will then push to Github

Finally, create a release on Github.com to trigger publish action.

npm-package-minimal's People

Contributors

briangershon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.