Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

release: v11.0.0-beta.6 (#1508) #72

release: v11.0.0-beta.6 (#1508)

release: v11.0.0-beta.6 (#1508) #72

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/[email protected]
name: Caching Node.js dependencies
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-v2-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v2
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Build
run: yarn workspace web build
- name: E2E tests preparation
run: |
npm i -g wrangler
yarn playwright install chromium --with-deps
- name: E2E tests
run: yarn test:integration
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
- name: Publish
run: wrangler publish --env production
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}