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

Automate canary releases to npm #344

Closed
johno opened this issue Dec 4, 2018 · 11 comments
Closed

Automate canary releases to npm #344

johno opened this issue Dec 4, 2018 · 11 comments
Labels
good first issue 👋 This may be a great place to get started!

Comments

@johno
Copy link
Member

johno commented Dec 4, 2018

As @ChristopherBiscardi mentioned we should begin automating canary releases to npm. We can follow the flow similarly to next and gatsby-mdx via Travis CI.

@wooorm wooorm mentioned this issue Dec 4, 2018
@ChristopherBiscardi ChristopherBiscardi added the good first issue 👋 This may be a great place to get started! label Dec 6, 2018
@ChristopherBiscardi
Copy link
Member

Seems like a good first issue for someone. Main task is to add the script mentioned in the comment above, and have it execute only if the travis build is master branch and everything else has passed.

@timneutkens
Copy link
Member

@leimonio
Copy link
Contributor

This PR #376 has also failed because of npm authentication on Travis CI.

@johno
Copy link
Member Author

johno commented Feb 1, 2019

I set an NPM_AUTH_TOKEN as an env var. I was under the impression that would be picked up for npm authentication but I guess I'm mistaken?

@leimonio
Copy link
Contributor

leimonio commented Feb 2, 2019

It doesn't seem to properly getting deployed, just checked the latest build and fail for the same reason. I've opened another PR for properly setting .npmrc file on Travis. #393

@johno
Copy link
Member Author

johno commented Feb 4, 2019

I've updated the token env var to be NPM_TOKEN. Hopefully that does the trick.

@johno
Copy link
Member Author

johno commented Feb 11, 2019

Looks like this is almost working! Looks like the way the ci versions are being generated makes is causing issues.

@leimonio
Copy link
Contributor

I've added another script to explicitly fetch tags before publishing #400 We're almost there! 🤞

@johno
Copy link
Member Author

johno commented Mar 5, 2019

Looks like we're now g2g, thanks @leimonio!

@johno johno closed this as completed Mar 5, 2019
@leimonio
Copy link
Contributor

leimonio commented Mar 5, 2019

@johno That's great, glad I helped! Let me know if I can help to migrate current CI/CD configuration to circleci.

@johno
Copy link
Member Author

johno commented Mar 6, 2019

If you wanted to take that on, feel free to write up an issue and assign yourself. That would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue 👋 This may be a great place to get started!
Development

No branches or pull requests

4 participants