Skip to content

Commit

Permalink
chore: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Jan 21, 2020
1 parent faccc63 commit 81ca106
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Expand Up @@ -24,20 +24,17 @@ jobs:
if [[ "$filter_count" != 0 ]]; then
echo "all good, continue"
echo "Releasing..."
yarn
yarn preversion
echo -e "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
yarn release
echo -e "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" > .npmrc
yarn publish
else
echo "the last commit log \"$last_commit_log\" contains \"$COMMIT_FILTER\", stopping"
exit 78
fi
git show -s --format=%s | grep '(release):' &> /dev/null
# if [ $? != 0 ]; then
# echo "Releasing..."
# yarn
# yarn preversion
# echo -e "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
# yarn release
# echo -e "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" > .npmrc
# yarn publish
# fi
env:
COMMIT_FILTER: '(release):'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 81ca106

Please sign in to comment.