Configure yarn to use official npmjs registry #72
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: Benchmarks | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [^18, ^20] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Configure yarn registry | |
| run: yarn config set registry https://registry.npmjs.org | |
| - name: Install Dependency | |
| run: yarn install && yarn global add ts-node | |
| - name: Run Benchmark | |
| run: yarn benchmark |