chore(deps): update pnpm to v10.6.2 #409
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: publish | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: [closed] | |
| jobs: | |
| build: | |
| name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} | |
| if: startsWith(github.head_ref, 'renovate/') | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| node: ["16.x"] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: dorny/paths-filter@v3 | |
| id: changes | |
| with: | |
| filters: | | |
| src: | |
| - 'src/**' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - name: Checkout repo | |
| if: steps.changes.outputs.src == 'true' | |
| uses: actions/checkout@v4 | |
| - if: steps.changes.outputs.src == 'true' | |
| run: | | |
| git config user.name "${{ secrets.USER_NAME }}" | |
| git config user.email "${{ secrets.USER_EMAIL }}" | |
| - name: Use Node ${{ matrix.node }} | |
| if: steps.changes.outputs.src == 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install PNPM | |
| if: steps.changes.outputs.src == 'true' | |
| uses: pnpm/[email protected] | |
| with: | |
| version: 6.0.2 | |
| - name: Install deps and build (with cache) | |
| if: steps.changes.outputs.src == 'true' | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Lint | |
| if: steps.changes.outputs.src == 'true' | |
| run: pnpm lint | |
| - name: Test | |
| if: steps.changes.outputs.src == 'true' | |
| run: pnpm test -- --ci --coverage --maxWorkers=2 | |
| - name: Build | |
| if: steps.changes.outputs.src == 'true' | |
| run: pnpm build | |
| - name: Bump version | |
| if: steps.changes.outputs.src == 'true' | |
| uses: qzb/[email protected] | |
| - if: steps.changes.outputs.src == 'true' | |
| run: | | |
| git config --global user.name "${{ secrets.USER_NAME }}" | |
| git config --global user.email "${{ secrets.USER_EMAIL }}" | |
| git push --follow-tags origin main | |
| - if: steps.changes.outputs.src == 'true' | |
| uses: JS-DevTools/npm-publish@v3 | |
| with: | |
| token: ${{ secrets.NPM_TOKEN }} |