Skip to content

Commit 613142b

Browse files
committed
chore(workflows/publish-docs): add workflow_dispatch trigger
1 parent 90add38 commit 613142b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- develop
77
paths:
88
- 'docs/docs/**'
9+
workflow_dispatch:
910

1011
jobs:
1112
publish-docs:
@@ -24,9 +25,9 @@ jobs:
2425
git config --local user.email "[email protected]"
2526
git config --local user.name "GitHub Action"
2627
git add package.json
27-
git commit -m "Update package version"
28+
git commit -m "chore(docs): publish documentation"
2829
git push
29-
- run: cd docs && npm publish
30+
- run: cd docs && npm build && npm publish
3031
env:
3132
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3233
- name: Get version
@@ -48,4 +49,4 @@ jobs:
4849
owner: context.repo.owner,
4950
repo: context.repo.repo,
5051
body: '🚀 New version has been released: ' + '${{ needs.publish-docs.outputs.version }}'
51-
})
52+
})

0 commit comments

Comments
 (0)