Merge branch 'pr/196' into alpha #6
This file contains 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 CD | |
on: | |
push: | |
paths: | |
- 'src/**' | |
- 'ios/**' | |
- 'android/**' | |
branches: | |
- alpha | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
fetch-depth: 0 | |
- name: git config | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build simple editor bundle | |
run: yarn editor:build | |
- name: Build web utils | |
run: yarn editor:build-web-utils | |
- name: Bump version for alpha release | |
run: npm version prerelease --preid=alpha | |
- name: Build package | |
run: yarn prepare | |
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | |
- run: yarn release --preRelease=alpha | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} |