Skip to content

Commit

Permalink
updated commit for changeset config
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema committed Dec 13, 2024
1 parent f61e8ed commit ff42b6e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/release-with-changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ jobs:
uses: changesets/action@v1
with:
version: npx -p @changesets/[email protected] 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: [email protected]
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: [email protected]

- if: steps.packagejson.outputs.exists == 'true'
name: Get version from package.json
Expand All @@ -144,19 +136,15 @@ 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
uses: changesets/action@v1
id: release
with:
publish: npx -p @changesets/[email protected] 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 }}
Expand Down

0 comments on commit ff42b6e

Please sign in to comment.