Skip to content

Commit 4ff0cb7

Browse files
committed
[fix] Document generation in GitHub actions
1 parent e292500 commit 4ff0cb7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ jobs:
3030
run: pnpm i --frozen-lockfile
3131

3232
- name: Build & Publish
33-
if: env.IS_RELEASE == 'true'
34-
run: npm publish --access public --provenance
3533
env:
3634
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37-
35+
run: |
36+
if [ $IS_RELEASE = "true" ]; then
37+
npm publish --access public --provenance
38+
else
39+
pnpm build
40+
fi
3841
- name: Update document
3942
if: env.IS_RELEASE == 'true'
4043
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)