Tighten engines and devEngines
#490
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 ] | |
| env: | |
| NODE_ACTIVE_LTS_VERSION: 24 | |
| NODE_PREVIOUS_LTS_VERSION: 22 | |
| NPM_VERSION: 11 | |
| jobs: | |
| build_on_node_previous_lts: | |
| name: Build distribution CSS and JS (Previous Node LTS) | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_PREVIOUS_LTS_VERSION }} | |
| cache: npm | |
| - name: Print Node.js and npm version | |
| run: node --version && npm --version | |
| - name: Install | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| build_on_node_active_lts: | |
| name: Build distribution CSS and JS (Active Node LTS) | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_ACTIVE_LTS_VERSION }} | |
| cache: npm | |
| continue-on-error: true | |
| - name: Install npm@${{ env.NPM_VERSION }} | |
| run: npm install -g npm@${{ env.NPM_VERSION }} | |
| - name: Print Node.js and npm version | |
| run: node --version && npm --version | |
| - name: Install | |
| run: npm ci | |
| - name: Build | |
| run: npm run build |