From 2ca80c75c4ad3d56e4c26c591f7d62e7b56a2bec Mon Sep 17 00:00:00 2001 From: kkkycocho Date: Fri, 8 Dec 2023 04:06:51 +0000 Subject: [PATCH] fix: build --- .github/workflows/publish.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 399e520..da9d7f9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,13 +10,25 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: oven-sh/setup-bun@v1 + + - name: Setup Node + uses: actions/setup-node@v2.1.2 + with: + node-version: '16.x' + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Install dependencies - run: bun install + run: yarn - name: Build - run: bun run build && cp build/index.html build/404.html + run: npm run build && cp build/index.html build/404.html env: REACT_APP_STARCOIN_API_URL: ${{ secrets.API_URL }} REACT_APP_STARCOIN_NETWORKS: ${{ secrets.AVAILABLE_NETWORKS }}