mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: 'Ionic Nightly Build'
|
|
|
|
on:
|
|
schedule:
|
|
# Run every Monday-Friday
|
|
# at 6:00 UTC (6:00 am UTC)
|
|
- cron: '00 06 * * 1-5'
|
|
|
|
jobs:
|
|
create-nightly-hash:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
nightly-hash: ${{ steps.create-nightly-hash.outputs.NIGHTLY_HASH }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
# A 1 is required before the timestamp
|
|
# as lerna will fail when there is a leading 0
|
|
# See https://github.com/lerna/lerna/issues/2840
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
shell: bash
|
|
- id: create-nightly-hash
|
|
name: Create Nightly Hash
|
|
# The date should output YYYYMMDD
|
|
# so that it is human readable
|
|
run: |
|
|
echo "NIGHTLY_HASH=$(node ./.scripts/bump-version.js)-nightly.$(date +%Y%m%d)" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
release-ionic:
|
|
needs: [create-nightly-hash]
|
|
permissions:
|
|
id-token: write
|
|
uses: ./.github/workflows/release-ionic.yml
|
|
with:
|
|
tag: nightly
|
|
version: ${{ needs.create-nightly-hash.outputs.nightly-hash }}
|
|
secrets:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|