From: Angelo Rodrigues Date: Wed, 25 Jan 2023 15:07:49 +0000 (-0500) Subject: build bundle.js in deployment to github pages X-Git-Url: https://git.xangelo.ca/?p=apps%2Foutliner%2F.git;a=commitdiff_plain;h=1aa22e72ae57fa0a5df3ac861fc794334fca8f72 build bundle.js in deployment to github pages Instead of committing the built file locally, this does the build in GitHub Actions/ --- diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 6a8b68c..44320d0 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -32,6 +32,12 @@ jobs: uses: actions/checkout@v3 - name: Setup Pages uses: actions/configure-pages@v2 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18.7.0 + - run: NODE_ENV=production npm i + - run: ENVIRONMENT=production npm run build - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: