Alpha Releases #262
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Alpha Releases | |
| on: | |
| schedule: | |
| - cron: '0 20 * * 3' # weekly (Wednesday) | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| uses: ./.github/workflows/ci-jobs.yml | |
| release: | |
| permissions: | |
| contents: read # PAT used for push | |
| name: Tag + Push | |
| runs-on: ubuntu-latest | |
| needs: [ tests ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/setup | |
| - name: setup git | |
| run: | | |
| git config --local user.email '[email protected]' | |
| git config --local user.name 'Ember.js Alpha Releaser' | |
| - name: Find next alpha | |
| run: | | |
| LATEST_ALPHA=`npm view ember-source dist-tags.alpha` | |
| export NEXT_ALPHA=`node bin/next-alpha-version.js ${LATEST_ALPHA}` | |
| echo "NEXT_ALPHA=$NEXT_ALPHA" >> $GITHUB_ENV | |
| - name: bump version | |
| run: npm version ${{env.NEXT_ALPHA}} --allow-same-version --no-git-tag-version | |
| - name: create tag | |
| run: git tag v${{env.NEXT_ALPHA}}-ember-source | |
| - name: push tag | |
| # Push in a way that WILL trigger other workflows | |
| run: git push https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_TOKEN }}@github.com/${GITHUB_REPOSITORY} v${{env.NEXT_ALPHA}}-ember-source |