diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33daaaf..bae51f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,6 @@ concurrency: permissions: contents: write - pull-requests: write id-token: write jobs: @@ -29,15 +28,20 @@ jobs: - run: pnpm install --frozen-lockfile + - name: Version packages + run: pnpm changeset version + - run: pnpm run build - - name: Create Release PR or Publish - uses: changesets/action@v1 - with: - version: pnpm changeset version - publish: pnpm changeset publish --provenance - title: "chore: version packages" - commit: "chore: version packages" + - name: Publish to npm + run: pnpm changeset publish --provenance env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Commit and push version changes + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "chore: version packages" || echo "No changes to commit" + git push