Skip to content

Alpha Releases

Alpha Releases #168

name: Alpha Releases
on:
schedule:
- cron: '0 20 * * 3' # weekly (Wednesday)
permissions:
contents: read
jobs:
test:
name: Basic Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: build
env:
DISABLE_SOURCE_MAPS: true
BROCCOLI_ENV: production
run: pnpm ember build
- name: test
env:
TEST_SUITE: each-package
run: pnpm test
release:
permissions:
contents: write # to push tag
name: Tag + Release
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3
- 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: tag the next alpha
run: npm version ${{env.NEXT_ALPHA}} --allow-same-version
- name: build for publish
env:
BUILD_TYPE: alpha
OVERRIDE_FEATURES: ''
run: node bin/build-for-publishing.js
- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: push tag
# Push in a way that will NOT trigger other workflows
run: git push origin v${{env.NEXT_ALPHA}}