chore: add changeset for git analytics removal #126
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write # Required for OIDC trusted publishing | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| # This makes sure we fetch all history so Changesets can compare versions | |
| fetch-depth: 0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js 22.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| # Ensure npm 11.5.1+ for trusted publishing support | |
| - name: Update npm | |
| run: npm install -g npm@latest | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Packages | |
| run: pnpm build | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| # This creates a "Version Packages" PR when changesets are added | |
| version: pnpm changeset version | |
| # This publishes to npm when the version PR is merged | |
| # Uses OIDC trusted publishing - no NPM_TOKEN needed! | |
| publish: pnpm changeset publish | |
| # Commit message for version bumps | |
| commit: 'chore: release packages' | |
| # PR title for version bumps | |
| title: 'chore: release packages' | |
| # Create GitHub Releases | |
| createGithubReleases: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # No NPM_TOKEN needed - OIDC handles authentication! |