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

Script de publicación automática #66

Open
juandjara opened this issue Mar 23, 2018 · 0 comments
Open

Script de publicación automática #66

juandjara opened this issue Mar 23, 2018 · 0 comments

Comments

@juandjara
Copy link
Member

juandjara commented Mar 23, 2018

It would be a good idea to have a script for publishing automatically a new version of the NPM package every a PR is merged against master. This script could run inside Jenkins and read NPM authorization data from environment variables or an environment file, hidden to git so we avoid security issues.

This script could contain the following commands:

# this updates the package version and creates a git tag automatically, as this documentation says:
# https://docs.npmjs.com/cli/version
npm run patch 
npm run build
cd dist
# we can follow the instructions in this post for npm login to work here
# https://circleci.com/docs/1.0/npm-login/
echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
npm publish
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

1 participant