fix: bruh why do you hate me npm #22
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: Release Please | |
| on: | |
| push: | |
| branches: | |
| - birdflop | |
| paths: | |
| - 'packages/rgbirdflop/**' | |
| - '.release-please-manifest.json' | |
| - 'release-please-config.json' | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: write | |
| pull-requests: write | |
| packages: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| - name: Checkout code | |
| if: ${{ steps.release.outputs['packages/rgbirdflop--release_created'] }} | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| if: ${{ steps.release.outputs['packages/rgbirdflop--release_created'] }} | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| if: ${{ steps.release.outputs['packages/rgbirdflop--release_created'] }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| if: ${{ steps.release.outputs['packages/rgbirdflop--release_created'] }} | |
| run: pnpm install --frozen-lockfile | |
| - name: Build package | |
| if: ${{ steps.release.outputs['packages/rgbirdflop--release_created'] }} | |
| working-directory: packages/rgbirdflop | |
| run: pnpm build | |
| - name: Publish to npm | |
| if: ${{ steps.release.outputs['packages/rgbirdflop--release_created'] }} | |
| working-directory: packages/rgbirdflop | |
| run: npm publish --provenance --access public |