name: Release on: workflow_dispatch: permissions: contents: write id-token: write concurrency: group: release-main cancel-in-progress: false jobs: release: name: Release from main runs-on: ubuntu-latest environment: name: production if: github.ref == 'refs/heads/main' steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: fetch-depth: 0 persist-credentials: true - name: Setup Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e with: node-version: 22 registry-url: "https://registry.npmjs.org" - name: Install dependencies run: npm ci - name: Run checks run: npm test - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npm run release