Skip to content

Instantly share code, notes, and snippets.

@kellywoo
Last active October 18, 2018 07:32
Show Gist options
  • Save kellywoo/7e783a570b0e8848d11c00b84db00a85 to your computer and use it in GitHub Desktop.
Save kellywoo/7e783a570b0e8848d11c00b84db00a85 to your computer and use it in GitHub Desktop.
reference
# create tag
git add .
git commit -m “Initial release”
git tag v0.1.0
git push origin master --tags
# or git push origin v1.5
# search tag
git tag -l 'v1.4.2.*'
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
{
"name": "passport-me2day",
"version": "0.1.0",
"description": "Me2day authentication strategy for Passport.",
"author": { "name": "outsider", "email": "email@example.com", "url": "http://sideeffect.kr/" },
"contributors": [
],
"repository": {
"type": "git",
"url": "git://github.com/outsideris/passport-me2day.git"
},
"bugs": {
"url": "http://github.com/outsideris/passport-me2day/issues"
},
"main": "./lib/passport-me2day",
"dependencies": {
"pkginfo": "0.2.x",
"passport": "~0.1.3"
},
"devDependencies": {
"vows": "0.6.x"
},
"scripts": {
"test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js"
},
"engines": { "node": ">= 0.4.0" },
"licenses": [ {
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
} ],
"keywords": ["passport", "me2day", "auth", "authn", "authentication", "identity"]
}
https://docs.npmjs.com/getting-started/publishing-npm-packages
https://codeburst.io/how-to-create-and-publish-your-first-node-js-module-444e7585b738
npm adduser
# Username:
# Password
# Email
npm config ls
# change version manually or
npm version patch
npm publish
# install test
mkdir ../install-test
cd ../install-test
npm install ../my-npm-module/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment