name: Beta Release on: push: branches: [develop] permissions: contents: write issues: write pull-requests: write jobs: release-beta: if: github.repository == 'mi-examples/qa-ai-rules' runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: fetch-depth: 0 persist-credentials: false - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: 24 cache: 'npm' - name: Install dependencies run: npm install - name: Build run: npm run build - name: Verify build output run: | if [[ ! -d "dist" ]]; then echo "Build failed: dist directory not found" exit 1 fi echo "Build verification passed" - name: Configure Git env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git git fetch --all --tags - name: Release Beta env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npx semantic-release