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

Use travis CI to publish to npm #292

Closed
2 of 19 tasks
hirako2000 opened this issue Jul 11, 2017 · 4 comments
Closed
2 of 19 tasks

Use travis CI to publish to npm #292

hirako2000 opened this issue Jul 11, 2017 · 4 comments
Assignees
Milestone

Comments

@hirako2000
Copy link
Collaborator

hirako2000 commented Jul 11, 2017

Cumbersome to publish from local machines.
Travis should publish to npm new versions of whs.

See how: https://docs.travis-ci.com/user/deployment/npm/

Version:
  • v2.x.x
  • v1.x.x
Issue type:
  • Bug
  • Proposal/Enhancement
  • Question
  • Discussion

Tested on:
Desktop
  • Chrome
  • Chrome Canary
  • Chrome dev-channel
  • Firefox
  • Opera
  • Microsoft IE
  • Microsoft Edge
Android
  • Chrome
  • Firefox
  • Opera
IOS
  • Chrome
  • Firefox
  • Opera
@hirako2000
Copy link
Collaborator Author

added the config, but my encrypted API token doesn't seem found. strange doc from Travis.
Maybe using a config variable would be easier, they say to put it in the travis file and simply encrypt it. but I see you do it differently for snyk and surge @sasha240100 .
See if you can use your own api key and get it to work.
Right now it tries to build and publish but fails with the token.

Travis will only try to deploy/publish to npmjs if it sees a tag pushed.

@hirako2000
Copy link
Collaborator Author

hirako2000 commented Jul 16, 2017

Deploy works, Travis will publish to npmjs on new tags applied to the dev branch.
Travis currently won't commit/push the built files.

Not currently on any branch.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
	modified:   build/whs.js
	modified:   build/whs.js.map
	modified:   build/whs.min.js
	modified:   build/whs.module.js
	modified:   build/whs.module.js.map
no changes added to commit (use "git add" and/or "git commit -a")

this step remains having to be done manually, also release notes needs added manually.

Closing this now. Next step would be to cover those two tasks:

  • Push built files
  • Automatically generate release notes from closed issues and PRs.

As part of different issues.

@sasha240100
Copy link
Member

@hirako2000 Maybe better to make the same only for master branch? I always merge dev to it after each release

@sasha240100 sasha240100 reopened this Jul 16, 2017
@hirako2000
Copy link
Collaborator Author

Yes that would make sense, I didn't know you released from master. that's the correct thing to do ;)

@sasha240100 sasha240100 added this to the v2.1.6 milestone Aug 8, 2017
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