-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f61e8ed
commit ff42b6e
Showing
1 changed file
with
2 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|