feat: link to easy invoice for client id generation, add option for custom client id in checkout #11
Workflow file for this run
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: Build | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| install: | |
| name: Install Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Cache node_modules | |
| uses: actions/cache@v4 | |
| id: node-modules-cache | |
| with: | |
| path: | | |
| node_modules | |
| ~/.npm | |
| key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node-modules- | |
| - name: Install dependencies | |
| if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
| run: npm ci | |
| build: | |
| name: Build | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Restore node_modules from cache | |
| id: node-modules-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node-modules- | |
| - name: Install dependencies (fallback) | |
| if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
| run: npm ci --no-audit --prefer-offline | |
| - name: Build | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_BUILDER_ID: "" | |
| NEXT_PUBLIC_GTM_ID: "GTM-XXXXXXXX" | |
| NEXT_PUBLIC_WEBSITE_URL: "https://request.network" | |
| NEXT_PUBLIC_DOCUMENTATION_URL: "https://docs.request.network/building-blocks/templates/request-checkout" | |
| NEXT_PUBLIC_NPM_PACKAGE_URL: "https://www.npmjs.com/package/@requestnetwork/payment-widget" | |
| NEXT_PUBLIC_DEMO_URL: "https://calendly.com/mariana-rn/request-network-intro" | |
| NEXT_PUBLIC_INTEGRATION_URL: "https://docs.request.network/building-blocks/templates/request-checkout" | |
| NEXT_PUBLIC_RN_API_CLIENT_ID: "rn_f6mr53l2yfcdv4sych5adq7gez3avurq" | |
| NEXT_PUBLIC_REQUEST_API_URL: "https://api.stage.request.network" |