diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 0bab3820..430c1aab 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -2,9 +2,6 @@ name: Pre-Release (RC) on: workflow_dispatch: # Allows manual triggering from GitHub UI/API - push: - branches: - - 'next' concurrency: pre-release-${{ github.ref }} @@ -41,12 +38,10 @@ jobs: npx changeset pre enter rc - name: Version RC packages - run: | - git config user.name "GitHub Actions" - git config user.email "github-actions@example.com" - npx changeset version - git add . - git commit -m "chore: rc version bump" || echo "No changes to commit" + run: npx changeset version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Create Release Candidate Pull Request or Publish Release Candidate to npm uses: changesets/action@v1 @@ -55,3 +50,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Exit RC mode + run: npx changeset pre exit + + - name: Commit & Push changes + uses: actions-js/push@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} + message: 'chore: rc version bump'