feat: network selector component #39
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 Deploy Widget | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/widget/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'packages/widget/**' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version: 18 | |
- run: yarn install --immutable | |
- run: yarn run lint | |
- run: yarn run build | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: sygma-widget | |
directory: ./packages/widget/build | |
branch: main | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |