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

Adds TravisCI config with NPM deployment configured #344

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

joestrong
Copy link
Contributor

@joestrong joestrong commented May 10, 2018

What kind of change does this PR introduce?
Allows for npm package to be updated automatically upon new release

Also, the npm package version can be brought up to date

Can it be referenced to an Issue? If so what is the issue # ?

Brought up in issue #251

How can we test it?

I tested it myself with my own NPM credentials and it worked.

To try it for real, Travis needs setting up (easy), and NPM credentials need adding. Full instructions below
Summary

Does this PR introduce a breaking change?

No

Other information

How to set up:

  1. Set up travis
    a) Go to https://travis-ci.org/ and login with Github
    b) Click + on left to add repository
    c) Switch on AR.js repository
    d) Click the cog for settings, turn on "Build only if .travis.yml is present"
  2. Add NPM credentials
    a) Open .travis.yml in project (in this PR)
    b) Add email address associated with NPM
    c) Add encrypted auth token. How to get an encrypted auth token is desribed here: https://docs.travis-ci.com/user/deployment/npm/#NPM-auth-token

Once this is all done, simply push a tag to Github and TravisCI should handle the rest.

Copy link

@liyasthomas liyasthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@nicolocarpignoli
Copy link
Collaborator

For me it is great! I cannot test it. Someone can please?

@jeromeetienne
Copy link
Owner

Sounds good to me. i like the automation of the npm publish.

thanks a lot for the doc too. i will definitly help me setup

@jeromeetienne jeromeetienne merged commit fa3c748 into jeromeetienne:dev Sep 24, 2018
nicolocarpignoli pushed a commit that referenced this pull request Feb 3, 2020
Adds TravisCI config with NPM deployment configured
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants