Bug fixes, visual improvements, and feature additions #159
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| - name: Setup Node ✨ | |
| uses: actions/setup-node@v4 | |
| with: | |
| # Pin to a known-good patch for Node's experimental unit coverage output. | |
| node-version: 22.12.0 | |
| cache: npm | |
| - name: Install Dependencies 🔧 | |
| run: npm ci --include=optional | |
| - name: Ensure Rollup Linux binary is present | |
| run: | | |
| node -e "require.resolve('@rollup/rollup-linux-x64-gnu')" || npm i --no-save @rollup/rollup-linux-x64-gnu@$(node -p "require('./node_modules/rollup/package.json').optionalDependencies['@rollup/rollup-linux-x64-gnu'] || require('./node_modules/rollup/package.json').version") | |
| - name: Build 🔧 | |
| run: npm run build:highmem | |
| - name: Post Build Actions 🛠️ | |
| run: npm run github-post-build | |
| env: | |
| NODE_ENV: production | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| environment: github-pages | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| - name: Setup Node ✨ | |
| uses: actions/setup-node@v4 | |
| with: | |
| # Pin to a known-good patch for Node's experimental unit coverage output. | |
| node-version: 22.12.0 | |
| cache: npm | |
| - name: Install Dependencies 🔧 | |
| run: npm ci --include=optional | |
| - name: Ensure Rollup Linux binary is present | |
| run: | | |
| node -e "require.resolve('@rollup/rollup-linux-x64-gnu')" || npm i --no-save @rollup/rollup-linux-x64-gnu@$(node -p "require('./node_modules/rollup/package.json').optionalDependencies['@rollup/rollup-linux-x64-gnu'] || require('./node_modules/rollup/package.json').version") | |
| - name: Build 🔧 | |
| run: npm run build:highmem | |
| - name: Post Build Actions 🛠️ | |
| run: npm run github-post-build | |
| env: | |
| NODE_ENV: production | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@releases/v4 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: pages | |
| FOLDER: dist | |
| CLEAN: true |