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

chore(build): Release using github token rather than ssh auth. #30

Merged
merged 2 commits into from
Apr 19, 2018

Conversation

dtardoin-eb
Copy link
Contributor

Giving up on trying to make semantic release work with ssh auth, while it's documented the command continually fails because there's a check to use the token that it can't progress past.

I'm going to also clean up travis to get rid of all the superfluous environment variables.

Description

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • I have read the CONTRIBUTING document.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have run yarn validate to ensure that tests, typescript and linting are all in order.

@kwelch-eb
Copy link
Contributor

I should have asked this question when I first saw this stuff floating around. I typically also use GH token.

.travis.yml Outdated
@@ -14,5 +14,5 @@ script: yarn run validate && yarn run build
deploy:
provider: script
skip_cleanup: true
script: bash _scripts/deploy.sh
script: npx semantic-release
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to leave off this line? Otherwise you're basically implemented #17. And in which case it should be:

npx travis-deploy-once "npx semantic-release"

per: https://github.com/semantic-release/semantic-release/blob/caribou/docs/recipes/travis.md#multiple-node-jobs-configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll probably have to delete/comment out the entire block so travis won't error in the meantime, but yeah I can do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah if you feel confident that this approach works then I can do the deploy part in implementing #17

@benmvp
Copy link
Contributor

benmvp commented Apr 19, 2018

Glad we're going the GH token route. More standard and seemingly much simpler.

@dtardoin-eb
Copy link
Contributor Author

Whoops, wrong button

@dtardoin-eb dtardoin-eb reopened this Apr 19, 2018
@dtardoin-eb
Copy link
Contributor Author

Basically the reasoning behind originally wanting the ssh auth was that it gave finer-grained access control over the token.... But obviously it's been a headache to get setup, and even then it didn't work, so yeah. I'm hoping this way is better.

@benmvp
Copy link
Contributor

benmvp commented Apr 19, 2018

Well it's likely that we're going to want to have a number of these types of repo so the special Travis user will make adding new repos/packages a lot easier

@BenAtEventbrite BenAtEventbrite merged commit a54f289 into eventbrite:master Apr 19, 2018
@ebtravis
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

5 participants