diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d902161..d244919 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -30,7 +30,7 @@ jobs: - run: npm ci --legacy-peer-deps - name: Build project - run: npm run build + run: npm run build --if-present env: REACT_APP_API_URL: ${{ secrets.REACT_APP_API_URL }} @@ -39,6 +39,6 @@ jobs: - name: Deploy with gh-pages run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - npx gh-pages -d build -u "github-actions-bot " + npm run deploy -- -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}