Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

tags don't match versions on npm #17

Closed
ungoldman opened this issue Apr 30, 2015 · 7 comments
Closed

tags don't match versions on npm #17

ungoldman opened this issue Apr 30, 2015 · 7 comments

Comments

@ungoldman
Copy link
Collaborator

  • versions on npm: [ '0.24.0', '0.25.0', '0.25.1-1', '0.25.1' ]
  • tags on github: v1.0.0...v1.2.1
@ungoldman ungoldman changed the title tags & releases don't match versions on npm tags don't match versions on npm Apr 30, 2015
@max-mapper
Copy link
Contributor

YA that's cause I suck at git

@ungoldman
Copy link
Collaborator Author

I ❤️ obsessing over tags and releases, lmk if I can help

@max-mapper
Copy link
Contributor

i apparently never git push --tags. i just did and maybe fixed this. dunno really

@ungoldman
Copy link
Collaborator Author

3/4 are there now https://github.com/mafintosh/electron-prebuilt/releases (0.25.1-1 ain't), but all the pre-npm publish stuff too.

@mafintosh
Copy link
Collaborator

@ngoldman i've added you as collab so you can tag the remaining releases if you want

@RnbWd
Copy link
Contributor

RnbWd commented May 12, 2015

I just put this in my path, I can't remember where I found it.

# NPM Publishing
alias patch='pre-version && npm version patch && post-version'
alias minor='pre-version && npm version minor && post-version'
alias major='pre-version && npm version major && post-version'
alias pre-version='git diff --exit-code && npm prune && npm install -q && npm test'
alias post-version='npm run --if-present build && git diff --exit-code && git push && git push --tags && npm publish'

@ungoldman
Copy link
Collaborator Author

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants