Skip to content

Commit

Permalink
chore: only publish docs on release
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jan 12, 2023
1 parent c6718b2 commit 9a6022b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- uses: ipfs/aegir/actions/cache-node-modules@master
- if: ${{ steps.release.outputs.release_created }}
name: Generate docs
name: Generate typedoc URLs
run: npm --if-present run docs -- --publish false
- if: ${{ steps.release.outputs.release_created }}
name: Run release version
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: ${{ !steps.release.outputs.release_created }}
- if: ${{ steps.release.outputs.release_created }}
name: Publish docs
run: npm run --if-present docs
env:
Expand Down

0 comments on commit 9a6022b

Please sign in to comment.