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

[FEQ] Added semantic releases automation #36

Merged

Conversation

adrienne-deriv
Copy link
Contributor

  • Integrated semantic release automation
  • Ensure that NPM_TOKEN is set in secrets, as well as the current version is already tagged (semantic release will use the current tag as reference of the current version)

"+([0-9])?(.{+([0-9]),x}).x",
"master",
"next",
"next-major",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any commits to the branches next, next-major will append a prelease version, like 0.0.11-beta

releaseRules: [
{
type: "feat",
release: "minor",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the release rules, which dictates what version it should be bumped to. The type of releases feat, build, chore are all checked within your commits.

So if you commited something like chore: updated time.ts and merged it to master branch, then the version will be patched from 0.0.11 to 0.0.12, likewise if you commited something like feat: added language utilites and merged it to master, the version would be bumped minor from 0.0.11 to 0.1.11

env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ensure that NPM_TOKEN is already set in the secrets.
Also, make sure that there is already a tag for the latest version. semantic-release will use the latest tag as a reference of the current version and either bump/patch the current version when merged to master

release.config.cjs Outdated Show resolved Hide resolved
@coveralls
Copy link
Collaborator

coveralls commented Apr 5, 2024

Pull Request Test Coverage Report for Build 8566861173

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 99.781%

Totals Coverage Status
Change from base Build 8535362045: 0.3%
Covered Lines: 455
Relevant Lines: 455

💛 - Coveralls

Copy link
Collaborator

@niloofar-deriv niloofar-deriv left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Collaborator

@niloofar-deriv niloofar-deriv left a comment

Choose a reason for hiding this comment

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

Our tests are failing please help to check them 🙏

vite.config.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@niloofar-deriv niloofar-deriv left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment on lines 12 to 13
permissions:
contents: read # for checkout
Copy link
Contributor

@jim-deriv jim-deriv Apr 5, 2024

Choose a reason for hiding this comment

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

@adrienne-deriv, can this be at the job level or is it needed globally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The job already has contents: write permission, so this is redundant, I'll remove it

@niloofar-deriv niloofar-deriv merged commit 50ffc61 into deriv-com:master Apr 8, 2024
2 checks passed
Copy link

github-actions bot commented Apr 8, 2024

🎉 This PR is included in version 0.0.12 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants