Skip to content

Alpha Releases

Alpha Releases #17

Workflow file for this run

name: Alpha Releases
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * 2' # weekly (Tuesday) 12 PM PST
- cron: '0 20 * * 5' # weekly (Friday) 12 PM PST
jobs:
release:
name: Run publish script
runs-on: ubuntu-latest
environment: deployment
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
fetch-depth: 1
fetch-tags: true
progress: false
- name: Check should run if HEAD is untagged
run: |
echo "HEAD is $(git name-rev --tags --name-only $(git rev-parse HEAD))"
if [[ "$(git name-rev --tags --name-only $(git rev-parse HEAD))" != "undefined" ]]; then
exit 1
fi
- uses: ./.github/actions/setup
with:
install: true
- 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 --skipSmokeTest
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Push branch + tag
run: git push origin HEAD --follow-tags
- uses: actions/upload-artifact@v3
with:
name: tarballs
path: ember-data-*.tgz