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

feat: add semantic-release setup for automatic deployments #271

Merged
merged 3 commits into from
Oct 19, 2020

Conversation

matmalkowski
Copy link
Collaborator

This adds the setup for semantic-release. master/beta/alpha branch changes will get deployed to npm
with version depending on the commit message

This adds the setup for semantic-release. master/beta/alpha branch changes will get deployed to npm
with version depending on the commit message
@matmalkowski matmalkowski self-assigned this Oct 17, 2020
@matmalkowski matmalkowski added this to In progress in v2 via automation Oct 17, 2020
@matmalkowski matmalkowski added this to the 2.0 milestone Oct 17, 2020
@matmalkowski matmalkowski linked an issue Oct 17, 2020 that may be closed by this pull request
Copy link
Contributor

@victorhqc victorhqc left a comment

Choose a reason for hiding this comment

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

looks good to me

jobs:
release:
name: Release
runs-on: ubuntu-18.04
Copy link
Contributor

Choose a reason for hiding this comment

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

There's also the ubuntu-latest option

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: 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.

cool

v2 automation moved this from In progress to Reviewer approved Oct 19, 2020
@hardchor
Copy link
Contributor

Might be worth adding a note to the contribution guide what is expected from the commit message to get picked up by this?

@matmalkowski
Copy link
Collaborator Author

@hardchor Yeah, I will make sure it makes it to the Contributing Guide once we have that doc for v2 👍🏻

@matmalkowski matmalkowski merged commit 4911227 into alpha Oct 19, 2020
v2 automation moved this from Reviewer approved to Done Oct 19, 2020
@matmalkowski
Copy link
Collaborator Author

🎉 This PR is included in version 2.0.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@matmalkowski matmalkowski deleted the semantic-release branch November 9, 2020 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v2
  
Done
Development

Successfully merging this pull request may close these issues.

Add semantic-release as publishing tool
3 participants