Skip to content

Commit

Permalink
chore(workflows/publish-docs): add workflow_dispatch trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLian committed Dec 14, 2023
1 parent 90add38 commit 613142b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- develop
paths:
- 'docs/docs/**'
workflow_dispatch:

jobs:
publish-docs:
Expand All @@ -24,9 +25,9 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add package.json
git commit -m "Update package version"
git commit -m "chore(docs): publish documentation"
git push
- run: cd docs && npm publish
- run: cd docs && npm build && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get version
Expand All @@ -48,4 +49,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: '🚀 New version has been released: ' + '${{ needs.publish-docs.outputs.version }}'
})
})

0 comments on commit 613142b

Please sign in to comment.