Fix lint:ci problems #21
Workflow file for this run
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: Cloudflare Pages | |
on: | |
pull_request: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
name: Deploy to Cloudflare Pages | |
runs-on: ubuntu-20.04 | |
env: | |
# Environment variables that are injected into the build | |
ENABLE_EXPERIMENTAL_COREPACK: 1 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
lfs: true | |
submodules: true | |
- uses: actions/[email protected] | |
with: | |
node-version: 16.17 | |
- run: corepack enable | |
- run: yarn install --immutable | |
- run: yarn web:build:prod | |
- name: vercel-cloudflare compatibility | |
run: | | |
cp web/.cloudflare/* web/.webpack/ | |
- uses: cloudflare/[email protected] | |
with: | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
gitHubToken: ${{ secrets.FOXGLOVEBOT_GITHUB_TOKEN }} | |
branch: ${{ github.head_ref || github.ref_name }} | |
projectName: foxglove-studio-oss | |
directory: web/.webpack |