Bump serialize-javascript and terser-webpack-plugin #30
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: Linting | |
| on: | |
| - push | |
| jobs: | |
| get-vars: | |
| uses: ./.github/workflows/nodevars.yml | |
| main: | |
| needs: get-vars | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ needs.get-vars.outputs.node-version }} | |
| cache: npm | |
| - name: Setup npm | |
| run: npm i -g npm@${{ needs.get-vars.outputs.npm-version }} | |
| - name: Cache node modules | |
| id: node_modules_cache | |
| uses: actions/cache@v3 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} | |
| - name: Install | |
| if: steps.node_modules_cache.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint |