Skip to content

Alpha Releases

Alpha Releases #42

Workflow file for this run

name: Alpha Releases
on:
schedule:
- cron: '0 20 * * 3' # weekly (Wednesday) 12 PM PST
jobs:
test:
name: Test latest code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check should run if HEAD is untagged
run: |
if [[ "$(git name-rev --tags --name-only $(git rev-parse HEAD))" != "undefined" ]]; then
exit 1
fi
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: 'yarn'
- name: Install dependencies for master
run: yarn install --frozen-lockfile --non-interactive
- name: Basic Tests
env:
CI: true
ASSERT_ALL_DEPRECATIONS: true
run: yarn test
release:
name: Run publish script
runs-on: ubuntu-latest
needs: [ test ]
environment: deployment
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
node-version: 14.x
cache: 'yarn'
- name: Install dependencies for master
run: yarn install --frozen-lockfile --non-interactive
- name: Make sure git user is setup
run: |
git config --local user.email 'tomster@emberjs.com'
git config --local user.name 'Ember.js Alpha Releaser'
- name: Publish with script
run: node scripts/publish.js canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Push branch + tag
run: git push origin HEAD --follow-tags
- uses: actions/upload-artifact@v2
with:
name: tarballs
path: ember-data-*.tgz