From ff42b6e378f46983570c2b7523e622a1010a2635 Mon Sep 17 00:00:00 2001 From: akshatnema Date: Fri, 13 Dec 2024 18:07:43 +0530 Subject: [PATCH] updated commit for changeset config --- .github/workflows/release-with-changesets.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-with-changesets.yml b/.github/workflows/release-with-changesets.yml index 45498ebd033..ec1cfbbbfe8 100644 --- a/.github/workflows/release-with-changesets.yml +++ b/.github/workflows/release-with-changesets.yml @@ -113,14 +113,6 @@ jobs: uses: changesets/action@v1 with: version: npx -p @changesets/cli@2.27.7 changeset version - commit: "chore(release): release and bump versions of packages" - title: "chore(release): release and bump versions of packages" - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - GIT_AUTHOR_NAME: asyncapi-bot - GIT_AUTHOR_EMAIL: info@asyncapi.io - GIT_COMMITTER_NAME: asyncapi-bot - GIT_COMMITTER_EMAIL: info@asyncapi.io - if: steps.packagejson.outputs.exists == 'true' name: Get version from package.json @@ -144,12 +136,6 @@ jobs: fs.writeFileSync(outputPath, updatedContent, 'utf8'); console.log(`Updated action.yml with version ${{ steps.get-version.outputs.version }}`); - - if: steps.packagejson.outputs.exists == 'true' - name: Commit changes of action.yml - run: | - git commit -am "chore(release): release and bump versions of github action docker" - git push --set-upstream origin ${GITHUB_REF#refs/heads/} || git push origin ${GITHUB_REF#refs/heads/} - - if: steps.packagejson.outputs.exists == 'true' name: Publish to any of NPM, Github, and Docker Hub #this step has 2 goals, it is either identifying that there is changeset file created and then this action creates a PR with version bump that will trigger release - or if it sees there is no changeset, and there are versions changes in package.json files, it publish new versions to NPM is they are not there yet @@ -157,6 +143,8 @@ jobs: id: release with: publish: npx -p @changesets/cli@2.27.7 changeset publish + commit: "chore(release): release and bump versions of packages" + title: "chore(release): release and bump versions of packages" setupGitUser: false env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}