Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Auto publish to npm #126

Open
aenario opened this issue Nov 25, 2016 · 5 comments
Open

Auto publish to npm #126

aenario opened this issue Nov 25, 2016 · 5 comments
Assignees

Comments

@aenario
Copy link

aenario commented Nov 25, 2016

It would be cool to do a npm publish at the same time we do a npm run deploy in travis.

This implies putting our secure NPM token on travis

@kosssi
Copy link

kosssi commented Nov 25, 2016

I can help for do that.

@m4dz
Copy link

m4dz commented Nov 28, 2016

Just a reminder of the actual worflow:

  1. every time we push (merge included) to master or development branch, it runs a deploy to the build branch when the build/tests are ok
  2. each time we want to release, I merge development into master, and update the version in the package.json file, then push it to origin/master
  3. I wait for the build, then create a signed tag (is this too much?) on the build branch for this new version
  4. I create a release in the GitHub interface using this tag

If this can partially or totally be automated, let's go! (or if you find a way to simplify, your suggestions are welcome :)).

Thanks guys!

@aenario
Copy link
Author

aenario commented Nov 29, 2016

Ok, first of all, let's document the actual worflow in this repository !
📝 publishing.md ?

It was confusing as in other apps, master is supposed to be equivalent to what's npm published. So any tag to master SHOULD trigger a NPM publish.

I'd offer to use another branch development-built, but it gets complicated fast....

@m4dz m4dz self-assigned this Nov 29, 2016
@m4dz
Copy link

m4dz commented Nov 29, 2016

Al'right! I'll document in a publishing doc the actual workflow, then we could find the right way to autopublish package.

Collateral though: does signing tag for release can be considered as a good practice or is it useless?

@jsilvestre
Copy link

Keep in mind that it's something we will want to do in other apps, so I invoke @gregorylegarec @goldoraf @CPatchane. Might be worth a 1h chat with everyone to take a decision or w/e. My 2 cents :)

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