Skip to content

Commit

Permalink
chore: change semantic-release command in github action steps (#351)
Browse files Browse the repository at this point in the history
Co-authored-by: chsingh <chsingh@twilio.com>
  • Loading branch information
charan678 and charan678 committed Dec 14, 2021
1 parent d26f504 commit f8e1723
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ jobs:
- name: Semantic Release runs for draft release
if: ${{github.event.inputs.draft-release == 'true'}}
id: semantic-release-draft
run: npx semantic-release -t \${version}
run: DEBUG=semantic-release:* $(npm bin)/semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Semantic Release runs
if: ${{github.event.inputs.draft-release != 'true'}}
id: semantic-release
run: npx semantic-release -t \${version}
run: DEBUG=semantic-release:* $(npm bin)/semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -94,7 +94,7 @@ jobs:
REPO_NAME: twilio/twilio-cli
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
delete-draft-release:
if: ${{github.event.inputs.draft-release == 'true' && needs.release.outputs.draft-tag-name != ''}}
runs-on: ubuntu-latest
Expand All @@ -108,7 +108,7 @@ jobs:
REPO_NAME: twilio/twilio-cli
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
oclif-release:
runs-on: ubuntu-latest
needs: [release]
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.draft-tag-name}}-draft", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'
oclif-draft-sanity-test:
oclif-draft-sanity-test:
runs-on: ubuntu-latest
if: ${{github.event.inputs.draft-release == 'true'}}
needs: [oclif-release]
Expand Down Expand Up @@ -175,8 +175,8 @@ jobs:
REPO_NAME: twilio/twilio-cli
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'

docker-release:
runs-on: ubuntu-latest
needs: [ release ]
Expand Down

0 comments on commit f8e1723

Please sign in to comment.