Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkycocho committed Dec 8, 2023
1 parent ff4c23d commit 2ca80c7
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}
Expand Down

0 comments on commit 2ca80c7

Please sign in to comment.