-
Notifications
You must be signed in to change notification settings - Fork 2
chore(release): Set up semantic-release #49
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
Conversation
|
PS: We need to push all workflow files to the |
6154bc8 to
6db59bd
Compare
|
Result of testing the |
6db59bd to
6852bfc
Compare
6852bfc to
27abf80
Compare
.github/workflows/pages.yml
Outdated
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| - uses: actions/deploy-pages@v1 | ||
| id: deployment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoseLion since you are not referencing this step anywhere, I think you should be able to get rid of the id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll give it a try! I took this from GitHub's auto-generated action for deploying GH Pages, so I'm not sure why they added the id to that final step 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worked perfectly fine! Thank you @sestrella!! 🙂
.github/workflows/release.yml
Outdated
| branch: release | ||
| dry_run: true | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoseLion what do you think about renaming GH_TOKEN secret to GITHUB_TOKEN just for the sake of consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that, but unfortunately, GitHub does not allow to create secrets starting with GITHUB_. I think they reserve that prefix for their own use 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoseLion oh! I realized this is a secret declared by us, most likely it is bound to your GH user account. I think it would be better to use the token already provided by the execution context, so try getting rid of GH_TOKEN and change this reference to secrets.GITHUB_TOKEN GH actions create one token by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you face some issues with permissions using this token try assigning a different permission set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, the problem was around permission. Awesome, I'll do that instead 👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be working on dry-mode. I'll keep the GH_TOKEN secret around just in case until our first release. Thanks for the help @sestrella! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoseLion overall looks good, I just left some minor comments
e76d369 to
da162f1
Compare
6541f08 to
0bdad85
Compare
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |

This PR sets up semantic-release and adds a workflow to GitHub Actions to release a package to NPM whenever changes are pushed to the
releasebranch