fix(getHighlightedIndexOnOpen): remove added check from migration (#1… #569
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: validate | |
| on: | |
| push: | |
| branches: | |
| - '+([0-9])?(.{+([0-9]),x}).x' | |
| - 'master' | |
| - 'next' | |
| - 'next-major' | |
| - 'beta' | |
| - 'alpha' | |
| - '!all-contributors/**' | |
| pull_request: {} | |
| jobs: | |
| main: | |
| # ignore all-contributors PRs | |
| if: ${{ !contains(github.head_ref, 'all-contributors') }} | |
| strategy: | |
| matrix: | |
| node: [20, 22, 24] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛑 Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v5 | |
| - name: Increase watchers | |
| run: | |
| echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf | |
| && sudo sysctl -p | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: 📥 Download deps | |
| uses: bahmutov/npm-install@v1 | |
| with: | |
| useLockFile: false | |
| - name: 🎭 Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: ▶️ Run validate script | |
| run: npm run validate | |
| env: | |
| FORCE_COLOR: true | |
| - name: ⬆️ Upload coverage report | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| release: | |
| needs: main | |
| runs-on: ubuntu-latest | |
| if: | |
| ${{ github.repository == 'downshift-js/downshift' && | |
| contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha', | |
| github.ref) && github.event_name == 'push' }} | |
| steps: | |
| - name: 🛑 Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v5 | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| - name: 📥 Download deps | |
| uses: bahmutov/npm-install@v1 | |
| with: | |
| useLockFile: false | |
| - name: 🏗 Run build script | |
| run: npm run build | |
| - name: 🚀 Release | |
| uses: cycjimmy/semantic-release-action@v6 | |
| with: | |
| semantic_version: 24 | |
| branches: | | |
| [ | |
| '+([0-9])?(.{+([0-9]),x}).x', | |
| 'master', | |
| 'next', | |
| 'next-major', | |
| {name: 'beta', prerelease: true}, | |
| {name: 'alpha', prerelease: true} | |
| ] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |