Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add npm publish script #15

Open
micahstubbs opened this issue Feb 26, 2018 · 3 comments
Open

add npm publish script #15

micahstubbs opened this issue Feb 26, 2018 · 3 comments
Assignees

Comments

@micahstubbs
Copy link
Contributor

This should make it easier for us to publish updates to npm

here's a pseudocode shell script:

# bump version in package.json, following semver
# do this with sed or some similiar 
# unix text editing scripting
VERSION=v0.12.2
git add package.json
git status
git commit -m "bump version to $VERSION"
git push

git tag $VERSION
git push origin --tags

npm publish
@micahstubbs micahstubbs self-assigned this Feb 26, 2018
@andrewseidl
Copy link

Doesn't npm already have the version bump built in? https://docs.npmjs.com/cli/version

@micahstubbs
Copy link
Contributor Author

ah yes, yes it does 💡

let's use this

@micahstubbs
Copy link
Contributor Author

micahstubbs commented Feb 26, 2018

ah this way to organize scripts also looks useful

"scripts": {
  "preversion": "npm test",
  "version": "npm run build && git add -A dist",
  "postversion": "git push && git push --tags && rm -rf build/temp"
}

(an example from https://docs.npmjs.com/cli/version)

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

No branches or pull requests

2 participants