fix audit #70
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: Test and Build @owox/docs | |
| on: | |
| pull_request: | |
| paths: | |
| - 'apps/docs/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Build job | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| # If one check fails, the others will continue to run | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Install specific npm version | |
| run: npm install -g [email protected] | |
| # can't set --ignore-scripts because Astro uses postinstall | |
| - name: Install dependencies | |
| run: npm ci --prefer-offline --no-audit --no-fund --loglevel error | |
| - name: Run build | |
| run: npm run build -w @owox/docs | |
| env: | |
| NODE_ENV: production |