diff --git a/.github/auto-release.yml b/.github/auto-release.yml new file mode 100644 index 0000000..f6b2032 --- /dev/null +++ b/.github/auto-release.yml @@ -0,0 +1,79 @@ +name-template: 'v$RESOLVED_VERSION 🚀' +tag-template: 'v$RESOLVED_VERSION' +version-template: '$MAJOR.$MINOR.$PATCH' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + - 'enhancement' + - 'feature' + - 'dependency-update' + patch: + labels: + - 'auto-update' + - 'patch' + - 'fix' + - 'chore' + - 'bugfix' + - 'bug' + - 'hotfix' + default: 'patch' + +categories: + - title: '🚀 Enhancements' + labels: + - 'enhancement' + - 'feature' + - 'patch' + - title: '⬆️ Upgrades' + labels: + - 'upgrades' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - 'hotfix' + - title: '🤖 Automatic Updates' + labels: + - 'auto-update' + - title: '📝 Documentation' + labels: + - 'docs' + +autolabeler: + - label: 'docs' + files: + - '*.md' + - label: 'enhancement' + title: '/enhancement|fixes/i' + + - label: 'upgrades' + title: '/⬆️/i' + + - label: 'bugfix' + title: '/bugfix/i' + + - label: 'bug' + title: '/🐛|🐞|bug/i' + + - label: 'auto-update' + title: '/🤖/i' + + - label: 'feature' + title: '/🚀|🎉/i' + +change-template: | +
+ $TITLE @$AUTHOR (#$NUMBER) + + $BODY +
+ +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..cb04cbf --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,36 @@ +name: auto-release + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + # write permission is required for autolabeler + # otherwise, read permission is required at least + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v6 + with: + publish: false + prerelease: true + config-name: auto-release.yml + # allows autolabeler to run without unmerged PRs from being added to draft + disable-releaser: ${{ github.ref_name != 'main' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 03f6c14..844fbc5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Introduction -Two Factor Authentication using `node-2fa` integration for AdonisJS. +Two Factor Authentication using `otplib` and `qrcode` integration for AdonisJS. ## Documentation diff --git a/package.json b/package.json index bfbd121..2461e39 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@nulix/adonis-2fa", + "name": "@mdsadique-inam/adonis-2fa", "description": "A Two Factor Authentication Helper for AdonisJS", "version": "1.0.0", "engines": {