Skip to content

Commit 736a066

Browse files
committed
Build docs after npm publish
1 parent 187b44e commit 736a066

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
if: ${{ steps.release.outputs.release_created }}
3232
- run: pnpm build
3333
if: ${{ steps.release.outputs.release_created }}
34+
- run: pnpm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
if: ${{ steps.release.outputs.release_created }}
3438
- run: pnpm run docs
3539
if: ${{ steps.release.outputs.release_created }}
3640
- uses: peaceiris/actions-gh-pages@v3
3741
with:
3842
github_token: ${{ secrets.GITHUB_TOKEN }}
3943
publish_dir: ./docs/.vitepress/dist
4044
if: ${{ steps.release.outputs.release_created }}
41-
- run: pnpm publish
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44-
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)