Skip to content

Commit

Permalink
Update release process to publish docs if target is defined (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Apr 13, 2024
1 parent 36a6139 commit 8cd22c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
NEW_VERSION=$(cat package.json | jq -r .version)
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
npm ci && npm run build
npm ci
[[ "$(npm run --json | jq -r 'has("docs")')" == "true" ]] && npm run docs
npm run build
git add .
git commit -m "Release: v${NEW_VERSION}"
Expand Down

0 comments on commit 8cd22c1

Please sign in to comment.