11
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2026-04-06 05:56:55 +00:00

style(outputs): uniform outputs to underline format

uniform outputs to underline format

BREAKING CHANGE: uniform outputs to underline format

Before:

outputs:
- new-release-published:
- new-release-version
- new-release-major-version
- new-release-minor-version
- new-release-patch-version

After:

outputs:
- new_release_published:
- new_release_version
- new_release_major_version
- new_release_minor_version
- new_release_patch_version
This commit is contained in:
cycjimmy 2019-10-21 13:30:51 +08:00
parent 463a57bad7
commit 4cea44f71a
4 changed files with 19 additions and 19 deletions

View file

@ -55,14 +55,14 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish To GitHub Package Registry
if: steps.semantic.outputs.new-release-published == 'true'
if: steps.semantic.outputs.new_release_published == 'true'
run: npm publish --@cycjimmy:registry='https://npm.pkg.github.com'
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Push updates to branch for major version
if: steps.semantic.outputs.new-release-published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new-release-major-version}}"
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}