diff --git a/.github/workflows/new-github-release.yml b/.github/workflows/new-github-release.yml deleted file mode 100644 index 34a63edae..000000000 --- a/.github/workflows/new-github-release.yml +++ /dev/null @@ -1,34 +0,0 @@ -# ๐Ÿ”— Links: -# Source file: https://github.com/rootstrap/react-native-template/blob/master/.github/workflows/new-github-release.yml -# Starter releasing process: https://starter.obytes.com/ci-cd/app-releasing-process/ - -# โœ๏ธ Description: -# This workflow will be triggered automatically after the new app version workflow has been executed successfully. -# It will create a new GitHub release with the new app version and the release notes. - -# ๐Ÿšจ GITHUB SECRETS REQUIRED: None - -name: New GitHub Release - -on: - push: - tags: - - '*' - -jobs: - release: - name: New GitHub Release - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: ๐Ÿ“ฆ Checkout project repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: ๐Ÿƒโ€โ™‚๏ธCreate A Draft Github Release - uses: ncipollo/release-action@v1 - with: - generateReleaseNotes: true - draft: false diff --git a/.github/workflows/new-template-version.yml b/.github/workflows/new-template-version.yml index 6014fa710..3dbc2db0e 100644 --- a/.github/workflows/new-template-version.yml +++ b/.github/workflows/new-template-version.yml @@ -71,3 +71,10 @@ jobs: - name: ๐Ÿ“ Get new package version run: | echo "NEW_VERSION=$(awk -F'"' '/"version": ".+"/{ print $4; exit; }' package.json)" >> $GITHUB_ENV + + - name: ๐Ÿƒโ€โ™‚๏ธCreate A Github Release + uses: ncipollo/release-action@v1 + with: + tag: v${{ env.NEW_VERSION }} + generateReleaseNotes: true + draft: false