fix(core): repair default client, packaging, and gateway ranking (2.0.2) #439
This file contains hidden or 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: Diff Check | |
| on: | |
| workflow_call: | |
| pull_request: | |
| branches: [main, alpha, solana] | |
| # This runs on all PRs regardless of paths changed | |
| jobs: | |
| changed-files: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| core: ${{ steps.filter.outputs.core }} | |
| extension: ${{ steps.filter.outputs.extension }} | |
| react: ${{ steps.filter.outputs.react }} | |
| any: ${{ steps.filter.outputs.any }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check changed files | |
| uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| filters: | | |
| core: | |
| - 'packages/wayfinder-core/**' | |
| extension: | |
| - 'packages/wayfinder-extension/**' | |
| - 'packages/wayfinder-core/**' | |
| react: | |
| - 'packages/wayfinder-react/**' | |
| - 'packages/wayfinder-core/**' | |
| any: | |
| - '**' | |
| core: | |
| needs: changed-files | |
| if: ${{ needs.changed-files.outputs.core == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Lint | |
| run: npm run lint:check -w @ar.io/wayfinder-core | |
| - name: Build core library | |
| run: npm run build -w @ar.io/wayfinder-core | |
| extension: | |
| needs: changed-files | |
| if: ${{ needs.changed-files.outputs.extension == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Lint | |
| run: npm run lint:check -w @ar.io/wayfinder-extension | |
| - name: Build core library first | |
| run: npm run build -w @ar.io/wayfinder-core | |
| - name: Build extension | |
| run: npm run build -w @ar.io/wayfinder-extension | |
| react: | |
| needs: changed-files | |
| if: ${{ needs.changed-files.outputs.react == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Lint | |
| run: npm run lint:check -w @ar.io/wayfinder-react | |
| - name: Build core library first | |
| run: npm run build -w @ar.io/wayfinder-core | |
| - name: Build react components | |
| run: npm run build -w @ar.io/wayfinder-react |