mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 01:52:19 +08:00
chore(ci): do not publish GitHub releases for nightlies (#28853)
Publishing GitHub releases for each nightly is creating more noise than the team would like. As a result, we are going to stop publishing the GitHub release. However, nightly builds will continue to automatically release. Developers can look at the commits in `main` to determine if a commit is in a nightly build: https://github.com/ionic-team/ionic-framework
This commit is contained in:
42
.github/workflows/nightly.yml
vendored
42
.github/workflows/nightly.yml
vendored
@ -37,45 +37,3 @@ jobs:
|
|||||||
version: ${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
version: ${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
||||||
secrets:
|
secrets:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
finalize-release:
|
|
||||||
needs: [create-nightly-hash, release-ionic]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.IONITRON_TOKEN }}
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Configure Identity
|
|
||||||
# Commits from github-actions do not
|
|
||||||
# trigger other GitHub Actions. As a result,
|
|
||||||
# we publish releases from Ionitron instead
|
|
||||||
# so actions run when merging the release branch
|
|
||||||
# back into main.
|
|
||||||
run: |
|
|
||||||
git config user.name ionitron
|
|
||||||
git config user.email hi@ionicframework.com
|
|
||||||
shell: bash
|
|
||||||
- name: Checkout Nightly Branch
|
|
||||||
# There are branch protection rules for our version
|
|
||||||
# branches (i.e. "6.2.x"), so we cannot name the branch
|
|
||||||
# the nightly hash as it would fall under the protection
|
|
||||||
# rule. As a result, we prefix "tmp-" to the branch.
|
|
||||||
run: |
|
|
||||||
git checkout -b tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
|
||||||
git push origin tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
|
||||||
shell: bash
|
|
||||||
- name: Create GitHub Release
|
|
||||||
run: lerna version ${{ needs.create-nightly-hash.outputs.nightly-hash }} --yes --force-publish='*' --conventional-commits --conventional-prerelease --create-release github
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
shell: bash
|
|
||||||
# We need to push the commit changes in order for the tags
|
|
||||||
# to get updated, but we don't need to keep the changelog
|
|
||||||
# changes around.
|
|
||||||
- name: Delete Nightly Branch
|
|
||||||
run: |
|
|
||||||
git checkout main
|
|
||||||
git branch -D tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
|
||||||
git push origin --delete tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
|
||||||
shell: bash
|
|
||||||
|
Reference in New Issue
Block a user