Skip to content

Commit

Permalink
fix: github release actions should check required env vars before rel…
Browse files Browse the repository at this point in the history
…easing

Fixes #1
  • Loading branch information
EqualMa committed Jul 21, 2021
1 parent 08e5f5d commit f70e902
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
run: |
if [ -z "$GITHUB_TOKEN" ]; then
echo 'Unexpected empty GITHUB_TOKEN' >&2
exit 1
fi
if [ -z "$NPM_TOKEN" ]; then
echo 'Please set secrets.NPM_TOKEN' >&2
exit 1
fi
yarn run semantic-release

0 comments on commit f70e902

Please sign in to comment.