@alextanhongpin/test
v1.1.0
Published
A simple github package under the scoped name `@alextanhongpin/test`.
Downloads
4
Readme
test
A simple github package under the scoped name @alextanhongpin/test
.
To use the package, create a .npmrc
file with this:
registry=https://npm.pkg.github.com/alextanhongpin
Then install the package:
$ npm i @alextanhongpin/test
Sample usage:
const { greet } = require('@alextanhongpin/test')
console.log(greet)
Updating and publishing packages
First you need to create the GITHUB_TOKEN
and then follow the setup here.
$ npm version minor|major|patch
$ npm publish
Automating publishing
Github Action is set to publish the package to both npm
and Github Package
(though it fails for npm
now due to auth error). In order to trigger the Github Action, we need to create a release manually.