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

Commit

Permalink
chore: use semantic release exec to hook publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit committed Apr 7, 2021
1 parent 562426f commit 581bf3d
Show file tree
Hide file tree
Showing 4 changed files with 5,049 additions and 961 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
run: npm run build

- name: Semantic Release
id: semantic_release
if: success()
env:
GIT_AUTHOR_NAME: Scale Bot
Expand All @@ -62,10 +61,3 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run: npm run semantic-release

- name: Publish as mws
if: contains(steps.semantic_release.outputs.*, 'There are no relevant changes, so no new version is released') == false
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: node_modules/.bin/ts-node -T utils/rename-package.ts && npm publish

0 comments on commit 581bf3d

Please sign in to comment.