chore: migrate yarn 1 + lerna to pnpm (#321)
#315
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| tests: | |
| name: tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| node: [22] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install pnpm before setup node | |
| shell: bash | |
| run: npm install -g pnpm | |
| - uses: actions/setup-node@v2-beta | |
| with: | |
| node-version: ${{matrix.node}} | |
| - run: pnpm install | |
| - run: pnpm build | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Check Types | |
| run: pnpm run check-types | |
| - name: Unit tests | |
| run: pnpm test:unit | |
| - name: E2e tests | |
| run: pnpm test:e2e | |
| maybe-release: | |
| name: release | |
| runs-on: ubuntu-latest | |
| needs: tests | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| steps: | |
| - uses: google-github-actions/release-please-action@v3 | |
| id: release | |
| with: | |
| command: manifest | |
| release-type: node | |
| monorepo-tags: true | |
| changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]' | |
| - uses: actions/checkout@v3 | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - name: Install pnpm before setup node | |
| shell: bash | |
| run: npm install -g pnpm | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - run: pnpm install | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - run: pnpm build | |
| if: ${{ steps.release.outputs.releases_created }} | |
| - run: pnpm run publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
| if: ${{ steps.release.outputs.releases_created }} |