[RELEASE] tangle-dapp v0.1.7 and leaderboard v0.0.4 (#3057) #2555
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: | |
| pull_request: | |
| branches: [develop, staging, master, feature/**] | |
| push: | |
| branches: [develop, staging, master, feature/**] | |
| workflow_dispatch: | |
| jobs: | |
| build_code: | |
| name: run | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ['>=18.18.x'] | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/[email protected] | |
| with: | |
| access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@v4 | |
| - name: Enable corepack | |
| run: | | |
| corepack enable | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/[email protected] | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: yarn | |
| - name: Install deps | |
| run: yarn install | |
| - name: build | |
| run: | | |
| yarn nx run-many --all --target=build | |
| # Fix: JavaScript heap out of memory | |
| # https://github.com/actions/runner-images/issues/70#issuecomment-1191708172 | |
| env: | |
| NODE_OPTIONS: '--max_old_space_size=4096' |