From 62541826d802d546b78ab2b3575b87e7c65a6143 Mon Sep 17 00:00:00 2001 From: "Abdel @ StarkWare" Date: Mon, 29 Apr 2024 14:25:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20fix=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/webapp.yml | 14 +++++++++++--- joyboy-webapp/package.json | 5 +---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/webapp.yml b/.github/workflows/webapp.yml index 35f2e84c..dc346694 100644 --- a/.github/workflows/webapp.yml +++ b/.github/workflows/webapp.yml @@ -12,7 +12,7 @@ concurrency: jobs: build-and-deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -21,7 +21,15 @@ jobs: run: npm install working-directory: ./joyboy-webapp + # Build step with working directory set to ./crates/wasm/app + # NODE_OPTIONS=--openssl-legacy-provider is required for the build step to work + - name: Build + run: NODE_OPTIONS=--openssl-legacy-provider npm run build + working-directory: ./joyboy-webapp + # Deploy step - name: Deploy - run: npm run deploy - working-directory: ./joyboy-webapp + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./joyboy-webapp/build diff --git a/joyboy-webapp/package.json b/joyboy-webapp/package.json index 3a076b01..b112caae 100644 --- a/joyboy-webapp/package.json +++ b/joyboy-webapp/package.json @@ -2,7 +2,6 @@ "name": "joyboy-webapp", "version": "0.1.0", "private": true, - "homepage": "https://keep-starknet-strange.github.io/joyboy/", "dependencies": { "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", @@ -21,9 +20,7 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject", - "predeploy": "npm run build", - "deploy": "gh-pages -d build" + "eject": "react-scripts eject" }, "eslintConfig": { "extends": [