From 11306c2b206be949a9c6f50b8b55d3bd802e05ac Mon Sep 17 00:00:00 2001 From: Proksh Luthra <35415752+proksh@users.noreply.github.com> Date: Thu, 26 Sep 2024 23:04:56 +0530 Subject: [PATCH] fix: updated publish command --- .github/workflows/publish.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e44b98..c2e354d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,12 +22,28 @@ jobs: - run: npm run build working-directory: ./packages/react + # Automatically bump the version + - name: Bump Version with Changesets + run: npx changeset version + working-directory: ./packages/react + + # Commit the new version + - name: Commit Version Bump + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "ci: version bump" + git push + working-directory: ./packages/react + - name: Create Release Pull Request or Publish id: changesets uses: changesets/action@v1 working-directory: ./packages/react with: - publish: npm run build + # Remove the manual npm publish command + publish: 'false' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}