Minor misc fixes #748
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: CI Develop | |
on: | |
push: | |
branches: | |
- 'develop' | |
pull_request: | |
branches: | |
- 'develop' | |
env: | |
BASE: ${{ github.ref == 'refs/heads/develop' && 'origin/develop~1' || 'origin/develop' }} | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Create env file | |
run: | | |
touch .env | |
echo NX_RIVET_KEY=${{ secrets.NX_RIVET_KEY }} >> .env | |
echo NX_ETHERSCAN_KEY=${{ secrets.NX_ETHERSCAN_KEY }} >> .env | |
echo NX_ARBISCAN_KEY=${{ secrets.NX_ARBISCAN_KEY }} >> .env | |
echo NX_GNOSISSCAN_KEY=${{ secrets.NX_GNOSISSCAN_KEY }} >> .env | |
echo NX_POLYGONSCAN_KEY=${{ secrets.NX_POLYGONSCAN_KEY }} >> .env | |
echo NX_OPTIMISMSCAN_KEY=${{ secrets.NX_OPTIMISMSCAN_KEY }} >> .env | |
echo NX_GRAPH_API_KEY_MAINNET=${{ secrets.NX_GRAPH_API_KEY_MAINNET }} >> .env | |
echo NX_WALLET_CONNECT_ID=${{ secrets.NX_WALLET_CONNECT_ID }} >> .env | |
echo NX_BASESCAN_KEY=${{ secrets.NX_BASESCAN_KEY }} >> .env | |
- name: Install dependencies | |
run: yarn install | |
- name: Lint mono | |
run: npx nx affected:lint --base $BASE | |
- name: Build mono | |
run: npx nx affected:build --base $BASE | |
- name: Publish to cloudflare pages | |
if: ${{ github.ref == 'refs/heads/develop' }} | |
run: | | |
npx nx affected --target cloudflareStaging --base $BASE |