diff --git a/.github/workflows/mainline-to-dev.yml b/.github/workflows/mainline-to-dev.yml new file mode 100644 index 0000000..9b44f42 --- /dev/null +++ b/.github/workflows/mainline-to-dev.yml @@ -0,0 +1,34 @@ +name: Release Beta + +on: + push: + branches: [ mainline ] + +jobs: + release-dev: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Use Node.js 14 + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + - name: Install dependencies 📦 + run: yarn install --frozen-lockfile + - name: Build 🛠 + run: yarn build + - name: Deploy beta⛳️ + run: yarn deploy:beta