Tighten engines and devEngines
#478
Workflow file for this run
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 | |
| on: [ pull_request ] | |
| jobs: | |
| build: | |
| name: Build distribution CSS and JS | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| node: [ 22, 24 ] | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| if: matrix.node != 22 | |
| - name: Set up Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| if: matrix.node == 22 | |
| continue-on-error: true | |
| - name: Install npm@11 for Node.js ${{ matrix.node }} | |
| run: npm update | |
| if: matrix.node == 22 | |
| - name: Print Node.js and npm version | |
| run: node --version && npm --version | |
| - name: Install | |
| run: npm ci | |
| - name: Build | |
| run: npm run build |