fix(search): Reset pagination when search value changes #438
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
| # Copyright (c) Helio Chissini de Castro, 2023. Part of the SW360 Frontend Project. | |
| # | |
| # This program and the accompanying materials are made | |
| # available under the terms of the Eclipse Public License 2.0 | |
| # which is available at https://www.eclipse.org/legal/epl-2.0/ | |
| # | |
| # SPDX-License-Identifier: EPL-2.0 | |
| # License-Filename: LICENSE | |
| name: Build | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout source code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: pnpm-setup | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| with: | |
| version: 8 | |
| - name: Setup Node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - uses: actions/cache@v4 | |
| with: | |
| # See here for caching with `yarn`, `bun` or other package managers https://github.com/actions/cache/blob/main/examples.md or you can leverage caching with actions/setup-node https://github.com/actions/setup-node | |
| path: | | |
| ${{ github.workspace }}/.next/cache | |
| # Generate a new cache whenever packages or source files change. | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | |
| # If source files changed but packages didn't, rebuild from a prior cache. | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- | |
| - name: 📦 Install dependencies | |
| shell: bash | |
| run: | | |
| pnpm i | |
| - name: Run linting | |
| shell: bash | |
| continue-on-error: true | |
| run: | | |
| pnpm biome ci --reporter=github | tee biome_output.txt | |
| # Append output to GitHub summary | |
| { | |
| echo "## 🧹 Biome Report" | |
| echo "" | |
| echo '```' | |
| cat biome_output.txt | |
| echo '```' | |
| } >> $GITHUB_STEP_SUMMARY | |
| - name: Run build | |
| shell: bash | |
| run: | | |
| pnpm build --experimental-analyze --turbo --profile | |
| - name: Create Deploy Tarball | |
| shell: bash | |
| run: | | |
| pnpm pack --pack-destination dist | |
| - name: Create GH release | |
| uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2 | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| files: | | |
| dist/sw360-frontend-*.tgz |