Skip to content

Commit

Permalink
💚 fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Apr 29, 2024
1 parent 4d30482 commit 6254182
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -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
5 changes: 1 addition & 4 deletions joyboy-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down

0 comments on commit 6254182

Please sign in to comment.