This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
release: v11.0.0-beta.3 (#1506) #70
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: 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 }} |