feat(github): Add contents and pull-requests capabilities to GitHub plugin #329
Workflow file for this run
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: CI | |
| permissions: | |
| contents: read | |
| actions: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/** | |
| - releases/** | |
| - release-* | |
| - auto-release/** | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| REDIS_URL: redis://localhost:6379 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm release:check | |
| - run: pnpm test | |
| - run: pnpm docs:check | |
| - name: Pack release artifacts | |
| if: github.event_name == 'push' | |
| run: | | |
| mkdir -p artifacts | |
| pnpm --filter @sentry/junior pack --pack-destination artifacts | |
| pnpm --filter @sentry/junior-agent-browser pack --pack-destination artifacts | |
| pnpm --filter @sentry/junior-github pack --pack-destination artifacts | |
| pnpm --filter @sentry/junior-notion pack --pack-destination artifacts | |
| pnpm --filter @sentry/junior-sentry pack --pack-destination artifacts | |
| ls -la artifacts | |
| - name: Upload release artifacts | |
| if: github.event_name == 'push' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.sha }} | |
| path: artifacts/*.tgz | |
| if-no-files-found: error | |
| retention-days: 7 |