name: Release on: push: branches: ["main"] workflow_dispatch: # Allows triggering the workflow manually in GitHub UI concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: id-token: write contents: read pull-requests: read jobs: release: name: Release runs-on: ubuntu-latest permissions: id-token: write contents: write pull-requests: write env: PUPPETEER_SKIP_DOWNLOAD: "true" PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" steps: - name: Checkout Repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v4 - name: Setup Node.js 24 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6 with: node-version: 24.x check-latest: true cache: "pnpm" registry-url: "https://registry.npmjs.org" - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Build run: pnpm build - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2 with: publish-script: pnpm release version-script: pnpm changeset version commit-message: "chore: version packages" pr-title: "chore: version packages" github-token: ${{ secrets.GITHUB_TOKEN }} env: NPM_CONFIG_PROVENANCE: true