Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: runs mws publish step only if published a pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar committed Oct 26, 2020
1 parent b92ed1f commit b482850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -52,6 +52,7 @@ jobs:
run: npm run build

- name: Semantic Release
id: semantic_release
if: success()
env:
GIT_AUTHOR_NAME: Scale Bot
Expand All @@ -63,7 +64,7 @@ jobs:
run: npm run semantic-release

- name: Publish as mws
if: success()
if: "!contains(steps.semantic_release.outputs.*, 'There are no relevant changes, so no new version is released')"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit b482850

Please sign in to comment.