I TRIED MAGENTO 2.2.1 INITIALLY and found that heroku is not supporting php version 7.0.1 so when i try to install php 7.3 and 7.4 versions it gives error.These versions are supported by heroku and it gives following error
[Composer\Downloader\TransportException]
The 'https://repo.magento.com/archives/magento/framework/magento-framework-102.0.6.0.zip' URL required authentication.
You must be using the interactive console to authenticate
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
! ERROR: Dependency installation failed!
!
! The 'composer install' process failed with an error. The cause
! may be the download or installation of packages, or a pre- or
! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
! in your 'composer.json'.
!
! Typical error cases are out-of-date or missing parts of code,
! timeouts when making external connections, or memory limits.
!
! Check the above error output closely to determine the cause of
! the problem, ensure the code you're pushing is functioning
! properly, and that all local changes are committed correctly.
!
! For more information on builds for PHP on Heroku, refer to
! https://devcenter.heroku.com/articles/php-support
!
! REMINDER: the following warnings were emitted during the build;
! check the details above, as they may be related to this error:
! - Your selected PHP version has reached end-of-life
! Push rejected, failed to compile PHP app.
! Push failed